RankDossier
Check family

Mobile usability problems: viewport, scroll and tap targets

Most visitors reach a site from a phone, and search engines index the mobile version of a page first. These checks look for a missing viewport meta tag, horizontal scroll, tap targets that are too small, overlapping elements, dark mode problems and screenshots at seven widths. Add the viewport tag, make the layout fit the screen, and give links and buttons enough space to tap.

How the problem happens

A fixed-width element or a wide table pushes the page beyond the screen. The viewport tag is missing from a custom template, or buttons and menu links are sized for a mouse pointer.

Why mobile problems cost rankings and visitors

Google indexes the mobile version of a page first, so what a phone sees is what the search index holds. If the mobile layout hides content, breaks, or loads as a shrunken desktop page, that is the version that is judged. On many sites most visits now come from phones, and a visitor who has to zoom, scroll sideways or tap a tiny link is more likely to give up. That behavior is a poor experience and it undercuts the speed and engagement signals you work for elsewhere.

The failures are mechanical. Without a viewport declaration a mobile browser pretends to be a wide desktop screen and shrinks the page. A single element that is wider than the screen creates horizontal scroll and cuts content. Links and buttons that are too small or too close together cause mis-taps. Text and buttons that overlap at narrow widths cannot be read or pressed. And in dark mode, a design that fixes some colors but not others can leave text the same shade as its background. AI assistants that render a page to understand it see the same broken layout.

How to check mobile usability by hand

Open the page in the browser's responsive mode and test widths from about 320 to 1024 pixels, both portrait and landscape. Check the tag in the head first: the viewport declaration must exist. Then drag the width down slowly and watch for horizontal scroll bars, text that is cut off, images that overflow their container, and any point at which two elements overlap. A quick test is to search the page for any element wider than the window using the console.

Test touch targets on a real phone, because the finger is the measure. Links in a list, footer links and icon buttons are the usual offenders; they should have enough size and spacing to hit without zooming, with a minimum of 24 by 24 pixels and ideally closer to 44. Switch the system to dark mode and reload to check contrast and unreadable text. Finally, open the page on a mid-range phone over a normal connection rather than only on your fast laptop.

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

<style>
  img, video, iframe { max-width: 100%; height: auto; }
  pre, table { overflow-x: auto; }
  a, button { min-height: 44px; min-width: 44px; }
  @media (prefers-color-scheme: dark) {
    :root { --bg: #111418; --text: #eceff3; }
  }
</style>

How to fix mobile usability in code, server and CMS

Start with the viewport tag as in the example, then design mobile first: a single flexible column, fluid widths in percentages or rem, and media queries that add layout for larger screens. Make images, video and embeds fluid with max-width: 100%, wrap or scroll wide tables and code blocks inside their own container rather than letting them widen the page, and avoid fixed pixel widths on containers.

Give interactive elements a comfortable size and spacing, at least 24 by 24 pixels and preferably about 44, using padding rather than only font size. Fix overlaps by letting flexible rows wrap and by testing the narrowest width your analytics show. For dark mode, define colors as variables and redefine them in a prefers-color-scheme: dark block so text and background always change together. Do not hide important content or links on mobile only; the mobile version should carry the same text, headings, structured data and meta tags as the desktop one. In a CMS, choose a responsive theme and test plugins that inject fixed-width widgets.

How RankDossier detects mobile problems

RankDossier renders pages at phone, tablet and desktop widths and in light and dark mode. The checks in this family report a missing viewport meta tag, horizontal scroll on mobile, tap targets that are too small, overlapping elements at mobile widths and dark mode issues where text blends with the background. A further check provides screenshots at seven widths, so you can see for yourself how the site looks on the screens that matter, not only a list of findings.

Check one page quickly with the Mobile friendly test. The mobile SEO guide explains mobile-first indexing and what it means for content parity, the Core Web Vitals guide covers the speed side of the phone experience, and the technical SEO audit guide shows how mobile issues sit among the other technical signals.

Wrong and right

Wrong

<!-- no viewport -->
<head><title>Example</title></head>
<a href="/a" style="font-size:11px;padding:0">Link</a>
<div style="width:1100px">...</div>
<meta name="viewport" content="width=device-width, initial-scale=1">
<a href="/a" style="display:inline-block;min-width:44px;min-height:44px">Link</a>
<div style="max-width:100%">...</div>

How to fix it

WordPress

Use a responsive theme, check that it prints the viewport tag, and test pages that contain wide tables, embeds or fixed-width blocks added in the editor.

Next.js

Export the viewport in the layout, use relative widths and max-width: 100% for media, and give links and buttons a minimum size of about 44 pixels.

export const viewport = {
  width: 'device-width',
  initialScale: 1,
};

Nginx

Nginx does not control layout. Request the live page and check that the viewport tag is in the head, then open the page on a narrow screen.

curl -s https://example.com/ | grep -i 'name="viewport"'

Check codes in this family

These checks belong to this family. Each code appears in the audit report with its own explanation and fix.

  • VIEWPORT_MISSING Meta viewport is missing
  • MOBILE_OVERFLOW Horizontal scroll on mobile
  • MOBILE_TAP_TARGETS Tap targets too small
  • MOBILE_SCREENSHOTS Screenshots at 7 widths
  • DARK_MODE_ISSUES Dark mode issues
  • MOBILE_OVERLAP Overlapping elements on mobile

Read the full guide Mobile-friendly test: what to check now that Google retired its tool for the wider picture. Test one page for free with the Mobile friendly test.

Check your own site

Enter a domain – the free pre-check reads up to 10 pages and shows how many types of problems it finds. You pay only if you want the full report.

Start the free pre-check