Your site looks fine on a laptop, but you worry it’s a mess on phones. Here’s how to make a website mobile friendly: use responsive design, add the viewport tag, size content with relative widths, and test on a real phone.
If you are still at the setup stage, this guide on how to build a website covers the wider process.
| Item | Value |
|---|---|
| What Google reads for indexing | The mobile version of your content, crawled with the smartphone agent |
| Design pattern Google recommends | Responsive design |
| Page width without a viewport tag | 980 CSS pixels |
| Standard viewport tag value | width=device-width, initial-scale=1 |
| Mobile-friendliness used as a ranking signal | Since 2015 |
These figures come from Google Search Central and the Website Spec page on the viewport tag. Guidance can change, so check the sources before you rely on them.
Why does mobile friendliness matter for search?
Google’s Search Central guide describes mobile-first indexing: Google reads the mobile version of your content, crawled with the smartphone agent, when it indexes and ranks a site. You can read the details in the Google documentation.
The same guide says a dedicated mobile version is not required for your content to appear in Search results, yet it is very strongly recommended. In practice, the phone view of your page is the one that counts.
This is not a new idea. The Website Spec notes that Google has used mobile-friendliness as a ranking signal since 2015.
Pick responsive design first
Google lists three ways to build a mobile-friendly site, according to its mobile-first indexing guide. Here is how they differ:
- Responsive design: the same HTML on the same URL, with the layout changing to suit the screen size.
- Dynamic serving: the same URL, but the server relies on user-agent sniffing and the Vary: user-agent header to send different HTML to different devices.
- A separate mobile site: a whole new site, often on a subdomain, which WooRank describes as needing a lot of build time and extra redirects.
Google recommends responsive design because it is the easiest pattern to implement and maintain, as the Search Central guide explains. One codebase also means one set of content to keep accurate.
If you would rather not code, check that any builder’s templates adapt to phone screens before you commit. Our roundup of the best website builders for beginners is a sensible place to compare options.
Add the viewport tag
Without a viewport tag, a phone browser may treat your page like a desktop one. The Website Spec explains that Safari on iPhone renders pages as if the screen were 980 CSS pixels wide, then zooms out to fit.
The result is a tiny copy of the desktop layout, with text too small to read and tap targets you have to pinch-zoom to hit. Even a well-built responsive layout will not behave as designed until the tag is present.
The fix is one line in the page’s head section:
<meta name=”viewport” content=”width=device-width, initial-scale=1″>
The Website Spec says initial-scale=1 sets the starting zoom so CSS pixels match the browser’s idea of a pixel. Add the tag to every template on your site, not just the home page.
Never switch off zooming to get a “cleaner” look. The spec warns that user-scalable=no and maximum-scale=1 prevent users from pinch-zooming, and that it also fails WCAG 1.4.4.
The tag alone will not lift your rankings. WooRank states that setting the viewport is not, by itself, going to make a page rank higher in Google search results. What it does is let responsive layouts work.

Make the layout flex with the screen
Once the tag is in place, the content has to cooperate. WooRank’s guidance boils down to a few rules:
- Avoid fixed-width elements such as large images.
- Use relative width values in your page’s CSS.
- Do not rely on a particular width to render your page.
A common symptom of getting this wrong is side scrolling. WooRank says it occurs when a page is missing the viewport, or has an unconfigured viewport, and oversized images are another usual cause.
After the layout holds up, run a website speed test as your next check. A page that fits the screen can still feel slow, and visitors on phones will notice.
Test on a real phone
Emulators help, but a physical phone shows what visitors see. The Website Spec suggests this order:
- View the page source and confirm the tag is present and contains width=device-width, initial-scale=1.
- Open Chrome DevTools, toggle device emulation, and check the layout is not scaled down from a desktop width.
- Pinch-zoom on a real phone. If the page refuses to zoom, a user-scalable=no setting is hiding somewhere.
- Run Lighthouse, which flags both missing viewport tags and ones that disable zooming.
Repeat the checks after each theme, plugin or template change, because one new template can leave out the tag. Fix the biggest breakages first: text you cannot read, buttons you cannot tap, and anything that forces sideways scrolling.
Frequently asked questions
Do I need a separate mobile site?
Show answer
Usually not. One responsive layout on a single URL serves phones, tablets and desktops, and it is the pattern Google favors for easy upkeep, per its Search Central guide.
Will adding the viewport tag improve my Google rankings?
Show answer
Not on its own. WooRank is clear that the tag is only a foundation, so the real gains come from a layout that reads well and works with touch.
Is it acceptable to block pinch-zoom for design reasons?
Show answer
No. People with low vision rely on magnifying text, and the Website Spec says blocking zoom fails WCAG 1.4.4, so leave scaling enabled.
What is the quickest way to check my site?
Show answer
Open it on your own phone and try to zoom and scroll. Then run Lighthouse, which the spec notes will flag a missing or zoom-blocking viewport tag.



