Struggling to create a responsive site that looks good on high dpi mobile devices? You're not alone. No matter how you adjust your h2 and p text sizes, they seem to be the same size when viewed in portrait mode on certain devices like the Galaxy S4. Even weirder, the viewport width always shows as 980px, regardless of orientation.
Using
<meta name="viewport" content="width=device-width, initial-scale=1">
doesn't solve the issue either - the phone still behaves like a tablet due to the fixed viewport width. Researching online has not provided any clear solutions. Does anyone have any suggestions or insights into where I might be going wrong?
Thanks!
Edit: I attempted
@media all and (min--moz-device-pixel-ratio: 1.5),
(-webkit-min-device-pixel-ratio: 1.5),
(min-device-pixel-ratio: 1.5)
which helped with setting separate media queries for higher pixel ratio devices. However, the font size discrepancy between h2 and p elements remains puzzling. Trying to make the h2 twice the size of the p by adjusting the em values results in unexpected font sizes in portrait mode on my device. Any ideas on how to tackle this issue?