SEO
Viewport: the tag that fits your page to phones
The essentials
- Google indexes the phone version of your site. If it looks bad on a phone, that is what gets evaluated.
- Without a viewport, phones show the page like desktop, shrunk down.
- Almost every site needs the same line:
width=device-width, initial-scale=1. - Do not block zoom: people who need it to read get shut out.
The line you need
<meta name="viewport" content="width=device-width, initial-scale=1">
width=device-width makes the page as wide as the screen. initial-scale=1 opens it without zoom. With that, your theme’s responsive design can do its job.
Why it matters for SEO
Since mobile-first indexing, Google crawls with a simulated phone. A page without a viewport looks tiny, with unreadable text and cramped buttons, and that counts as a poor experience.
Common mistakes
- A fixed width, like
width=1024: the phone does not adapt. user-scalable=noormaximum-scale=1: it blocks zooming and is an accessibility barrier.- Two viewport tags from two different templates.
- Having the tag but no responsive design. The line only opens the door; the CSS has to respond to the width.
Check it
Check your page’s viewport
ToolURL auditor →