Skip to content
SEO-Wars

Technical

Viewport meta tag: make the page fit mobile screens

Without a viewport meta tag, phones render the page at desktop width and shrink it. Add one line to pass this check.

Category
Technical
Points available
3 pts
Effort
Quick fix

Why it matters

Most visits come from phones. Without the viewport tag, mobile browsers render a 980 px wide desktop page and zoom out, so text is tiny and buttons are hard to tap.

Google indexes the mobile version of your site, so a broken mobile layout hurts everywhere.

How we measure it

We check for a <meta name="viewport"> tag with non-empty content.

ResultPoints
viewport meta present3
Missing0

How to fix it

  1. Add <meta name="viewport" content="width=device-width, initial-scale=1"> to the <head>.
  2. Then make sure the layout is responsive: no fixed widths wider than the screen.

Copy-paste fixes

HTML
<meta name="viewport" content="width=device-width, initial-scale=1">
Shopifylayout/theme.liquid
<meta name="viewport" content="width=device-width,initial-scale=1">
Next.jsapp/layout.tsx
import type { Viewport } from "next";

// The App Router already outputs width=device-width, initial-scale=1 by default.
// Only export viewport if you need to change it; do not add a second meta tag by hand.
export const viewport: Viewport = { width: "device-width", initialScale: 1, themeColor: "#0f766e" };

Common mistakes

  • Adding maximum-scale=1 or user-scalable=no, which stops people from zooming and hurts accessibility.
  • Adding the tag twice: Next.js App Router already outputs one by default.

Test your site now

Put your site against a competitor and see how many of these points you earn, and which fixes pay off first.

Start a duel
← All checksUpdated December 1, 2026
Viewport: why it matters and how to fix it · SEO-Wars