DEV Community

Ryan Westlund
Ryan Westlund

Posted on

Question about mobile-friendly meta tags

I've heard some sources saying you need both initial-scale=1 and width=device-width in your <meta name="viewport", but then I read sources saying either one would do, and I switched to only having initial-scale=1 on my website and it works fine on my Android. But now I'm reading even more sources saying you do need both, so I'm wondering if some mobile devices need width=device-width but not Androids, but I can't find a straight answer on it anywhere (and I don't have any non-Android mobiles to test with). Anyone know?

Discussion (0)