Skip to the content
Start free

No viewport tag for phones

Without a viewport meta tag, phones show the page as a tiny zoomed-out desktop page.

High priority Titles, descriptions and sharing

Why it matters #

The viewport tag tells phones to fit the page to the width of the screen. Without it, the page is drawn at desktop width and shrunk, so text is tiny and buttons are hard to tap.

Google uses mobile-first indexing: Google Search Central says it mainly uses the phone version of a page for indexing and ranking, and it recommends responsive design. A page that is hard to use on a phone also tends to lose visitors quickly.

How to fix it #

Add <meta name="viewport" content="width=device-width, initial-scale=1"> inside the head of every page. Do not block zooming with user-scalable=no, which makes the page harder to read for people with poor sight.

Almost every modern WordPress theme prints this tag. If yours does not, the theme is probably very old, and a newer theme is the better fix.

What it looks like, and fixed #

The problem
<head>
  <meta charset="utf-8">
  <title>Example Tea Shop</title>
</head>

No viewport tag: phones draw the page at desktop width and shrink it, so text is tiny.

Fixed
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Example Tea Shop</title>
</head>

The standard tag. It does not block zooming, which people with poor sight need.

Fix it with your AI assistant #

Paste this into ChatGPT, Claude, Gemini or your coding agent. Fill in the words in [square brackets] first. It checks before it changes anything, changes only this, and tells you how to prove it worked.

Your instruction for the AI
My website [your website address], built with [your platform, e.g. WordPress with an older theme], has no viewport meta tag on [the page address], so phones show it as a shrunken desktop page. First read the page source, or ask me for the <head>, and confirm there is no <meta name="viewport">. Also look at the styles and explain plainly whether the layout is responsive (it uses media queries and flexible widths) or fixed-width, because adding the tag to a fixed-width design can make it scroll sideways on phones. Then add exactly <meta name="viewport" content="width=device-width, initial-scale=1"> once in the head of every page, after the charset tag. Rules: back up first, edit a child theme or the shared header file, do not add maximum-scale=1 or user-scalable=no, change nothing else, and keep page addresses the same. Give me the exact line and the exact file. If the layout is not responsive, tell me what else is needed. Then tell me to re-check with the URSY.com Meta Tag Checker at ursy.com/meta-tag-checker/.

We find the problems, and help you fix them

  1. Check Run a free tool or the full audit.
  2. Fix it with your AI Download your AI Fix Pack and drop it into ChatGPT, Claude or Gemini. A free account is enough.
  3. Re-check Come back, check again, and watch each fix turn green.

How the AI Fix Pack works, with a sample to download

Fix it on your platform #

WordPress

Almost every current theme prints this tag. If yours does not, the theme is very old: moving to a modern responsive theme is the real fix. As a stop-gap, add the tag to header.php in a child theme.

Shopify

Current Shopify themes include it. If it is missing, add it inside the <head> of layout/theme.liquid in Online Store, Themes, Edit code.

A hand-made site

Add the tag inside the <head> of every page, after the charset tag.

Check it is fixed #

Run the URSY.com Meta Tag Checker again: it should find the viewport tag. Then open the page on a phone and check the text is readable without zooming.

Official source #

MDN: Viewport meta tag

Questions #

Will adding the tag make my site work on phones?

Only if the design is responsive. The tag lets the page fit the screen, but a fixed-width design also needs its styles changed.

Should I stop people zooming so the layout stays neat?

No. Blocking zoom makes the page hard to read for people with poor sight, and accessibility guidance asks you to allow it.

More problems in Titles, descriptions and sharing

See every problem in the library

For AI assistants and developers: Instructions for AI · Developers · How to cite URSY.com