Viewport Meta: Tell Mobile Browsers How to Size the Page

Without a viewport tag, mobile browsers may render the page as if it were built for desktop widths.

That usually creates zoomed-out layouts and poor usability on phones.

What It Is

The viewport meta tag gives the browser instructions about how the page width and initial scale should behave on mobile devices.

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

Why It Matters

  • It is a baseline requirement for responsive rendering.
  • It improves readability and tap usability on smaller screens.
  • It reduces layout surprises between devices.

Best Practices

  1. Use width=device-width, initial-scale=1 unless you have a strong reason not to.
  2. Test actual pages on narrow mobile widths after adding it.
  3. Pair the tag with responsive CSS, not as a substitute for it.

Common Mistakes

  • Missing the tag entirely.
  • Using fixed widths that fight responsive layouts.
  • Assuming the tag alone makes a page mobile-friendly.

Quick Checklist

  • Viewport tag present.
  • Standard responsive values used.
  • Layouts checked on mobile widths.

Final Takeaway

The viewport tag is a simple line with large impact on mobile rendering quality.

Run this check on your own page

Open the tool and analyze a public URL to see this section inside the full report.

Back to checker

Continue to your tool account

Use Google or email. New tool accounts are created automatically the first time you continue.

We'll email you a 6-digit one-time code. Entering it on the next screen signs you in and creates your tool account automatically if needed.