Optimize viewport for mobile

In plain wordsThe page is set up for phone screens.

Without the viewport tag a phone shows the page as a tiny copy of the desktop version. Visitors have to pinch and scroll sideways to read anything.

  • Mobile
  • 6 of 148 points
  • Easy with access to the site settings

Older versions of Google's test called it: "Does not have a <meta name="viewport"> tag with width or initial-scale".

What it means

The viewport tag is one line in the page head. It tells a phone to lay the page out at the phone's own width. Without it, a phone assumes the page was made for a desktop, draws it about 980 pixels wide and shrinks the result to fit. Everything turns tiny.

It is worth the most points of any mobile check, because without it nothing else about the phone layout can work.

What causes it

  • An old theme or template from before phones mattered.
  • A hand-written page where the tag was forgotten.
  • A fixed width such as width=1024 in the tag, which forces every phone to pretend it is a small laptop.

How to fix it

  1. Add this tag to the page head: <meta name="viewport" content="width=device-width, initial-scale=1">.
  2. Then check the layout on a phone, since it will now use the phone's real width.
The whole fix is one line in the head of the page.
Before
<meta name="viewport" content="width=1024">
After
<meta name="viewport" content="width=device-width, initial-scale=1">

On your platform

WordPress, Shopify, Wix, Squarespace, Webflow
Current themes and templates include the tag. If it is missing, the theme is very old or was edited by hand: switching to a current theme is the real fix.

Check it yourself

Open the page on a phone. If the text is tiny and the page looks like a shrunken desktop site, the tag is missing.

Or run a free audit: it checks this and 53 other things on your page in about a minute, and shows the proof for each one.

How we test it

What we look at
The viewport meta tag.
It passes when
It tells phones to fit the page to the screen: width=device-width, or a starting zoom of 1 with no fixed width.
What it is worth
6 of 148 points in rule book 0.5, in Mobile. A rule that cannot be checked on a page counts neither for nor against it.

Questions

What does width=device-width mean?

It tells the browser to make the page as wide as the screen it is on, measured in the device's own units.

I added the tag and the page looks broken on a phone.

Then the layout was never built for small screens. The tag only tells the truth about the screen. The stylesheet has to do the rest.

Sources

Where to read more, and where to check what this page says. Opened and read on 20 and 24 November 2026.

Also useful: what a good website score is, how we compare with PageSpeed Insights and the full rule book.

Does your website have this problem?

A free audit checks this and 53 other things, and shows the proof. About a minute, no email needed.