Technical
TechnicalMedium

Viewport Meta Tag

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

What this check measures

We read the viewport meta tag. Must have content="width=device-width, initial-scale=1" for mobile rendering. Avoid `user-scalable=no` (accessibility).

Why it matters

Without viewport meta, mobile browsers render at 980px and zoom out — unreadable text, un-tappable buttons. Google flags as not mobile-friendly, demoting mobile rankings.

search

How our audit detects it

Parse <meta name="viewport"> tag. Validate content attribute includes width=device-width.

Typical findings

  • error_outlineViewport tag missing entirely.
  • error_outlinecontent="user-scalable=no" — accessibility fail.
  • error_outlinecontent="width=1024" — fixed width instead of device-width.

How to fix

Add `<meta name="viewport" content="width=device-width, initial-scale=1">` to every page head. In Next.js: `metadata.viewport`.

Copy-paste fix prompt for your stack

Lovable · Cursor · Bolt · v0 · Replit · Windsurf · Claude Code · Base44

View the fix prompt →

Frequently asked questions

Can I disable zoom?expand_more
Technically yes, practically no — it fails accessibility and Google flags it.

Want this checked on your site?

Pantra runs the full audit (SEO, Security, GEO, Performance, Schema, Technical, Images) in 10 seconds and generates stack-specific fix prompts.

Scan my site

Related checks