No, you'd need JS for that. But I suspect you are thinking about this the wrong way. It's either an h2 or an h4. It sounds like you are confusing the meaning of the HTML with the appearance of the HTML. Is it just that you want the heading to appear differently on different screen sizes? In that case, just change its styling with @media rules.