Technical SEOBeginner

Viewport meta tag

The viewport meta tag tells mobile browsers how to size a page to the screen. Without it, phones render a zoomed-out desktop layout.

Also called: Meta viewport

The viewport meta tag is a line in the HTML head that controls how a page is sized and scaled on mobile devices. Without it, mobile browsers assume a desktop-width page, typically around 980 pixels, and shrink it to fit, leaving text tiny. With width=device-width, the page lays out at the device's actual width, which responsive CSS needs to work.

The standard tag

This one line covers almost every site. width=device-width sets the layout width to the screen width, and initial-scale=1 sets the starting zoom to 100 percent.

<meta name="viewport" content="width=device-width, initial-scale=1">

Settings to avoid

Setting user-scalable=no or maximum-scale=1 stops users from zooming, which is an accessibility problem for people with low vision. Lighthouse flags it in the accessibility category. Fixed widths, such as width=1024, defeat the purpose of responsive design.

Example

A landing page builder template

Lanternhook builds campaign landing pages in a third-party builder. One template lacks a viewport tag, and phones show the page zoomed out with unreadable text. Lighthouse flags it in the SEO audit. Adding the standard tag to the template's head fixes every page built from it.

Common mistakes

Disabling zoom

user-scalable=no harms accessibility and gains nothing for SEO. Leave zoom enabled.

Multiple viewport tags

Templates and plugins sometimes each add one. Keep a single tag.

Questions

No. It is the starting point. The layout also needs responsive CSS, readable font sizes and tap targets that are easy to hit.

Know the terms. Now win the searches.

We find the searches your buyers make, then build, publish and improve the pages that win them.