Make the viewport follow the device width

seo.basics.viewport_not_responsive · effort: minutes

Why it matters

The viewport tag sets a fixed pixel width, or no width at all, so phones scale a desktop-sized page down to fit instead of laying it out for their own screen. Google indexes the mobile version of your site, so a page that is not mobile-ready can rank lower, unless the fixed width is a deliberate choice for a desktop-only site.

The fix

  1. Replace the fixed width in the viewport tag with width=device-width and add initial-scale=1. Do not add user-scalable=no or a maximum-scale below 5, which stop visitors from zooming.
  2. This only helps when your CSS adapts to narrow screens (percentages, flexible grids, media queries). Open the page on a phone or in the DevTools mobile view and check that nothing is cut off or needs sideways scrolling.
html
<meta name="viewport" content="width=device-width, initial-scale=1">

Read the documentation (opens in a new tab)

Scan your domain to see whether this applies to you.