Check Mobile Viewport Bookmarklet
Free mobile viewport checker bookmarklet: validates the meta viewport tag, finds elements causing horizontal scroll and counts small tap targets.
On a phone? Use Copy code, then save it as a bookmark's URL — step-by-step guide.
Google indexes the mobile version of your pages, so a broken viewport setup is an SEO problem, not just a design one. This bookmarklet reads the page's <meta name="viewport"> tag and checks the things that matter: width=device-width, initial-scale=1, and whether pinch-zoom has been disabled with user-scalable=no or a low maximum-scale, which fails WCAG accessibility guidelines.
It then looks at the rendered page: does anything stick out past the viewport and cause horizontal scrolling? The worst offenders are listed by tag, id and class, and you can click one to outline it. It also counts links and buttons smaller than 24 by 24 pixels, the WCAG 2.2 minimum target size, and can outline them for you.
For a quick real-world test, a button opens the current page in a phone-sized 390 px window.
What it does
- Parses the meta viewport tag and checks width, initial-scale, user-scalable and maximum-scale
- Flags a missing viewport tag, fixed widths and disabled zoom
- Detects horizontal overflow and lists up to 10 elements wider than the viewport (click to outline)
- Counts visible tap targets smaller than 24×24 px and outlines them on demand
- Shows the current viewport size, device pixel ratio and body font size
- Opens the page in a 390×844 window to preview a phone-sized layout
How to install the Check Mobile Viewport bookmarklet
- Show your bookmarks bar. Press
Ctrl+Shift+Bon Windows/Linux orCmd+Shift+Bon a Mac (Chrome, Edge, Brave, Firefox). In Safari choose View › Show Favorites Bar. - Drag the blue button above onto the bar. That's it — the bookmark now holds the code.
- Open any website and click the bookmark to run it on that page. Click it again to close it.
Can't drag (phone, tablet, locked-down browser)? Copy the code below, create any bookmark, then edit it and paste the code as its URL. See how to add a bookmarklet in every browser.
How to use it
- Open the page, ideally with the browser window narrowed or in DevTools device mode.
- Click the bookmarklet and review the viewport tag checks at the top.
- If horizontal overflow is reported, click an element in the list to see it outlined in red.
- Use Outline small targets to see which links or buttons are too small to tap comfortably.
Get accurate results
Overflow and tap-target checks measure the layout at your current window width. On a wide desktop window, mobile-only problems will not show up. Resize the window to about 375–414 px or use device emulation in DevTools, reload, then run the bookmarklet. The 390 px preview button helps, but browsers enforce a minimum popup width, so DevTools emulation is more accurate.
The small-target count is a guide, not a hard rule. Inline links inside a paragraph are exempt from the WCAG 2.2 target-size rule, so focus on buttons, icons and navigation links.
Bookmarklet code
This is the exact code inside the button above (10,590 characters). It runs only in your browser and sends nothing to us. Paste it into the Bookmarklet Decoder to read it formatted.
Frequently asked questions
What is the correct viewport meta tag?
For almost every site: <meta name="viewport" content="width=device-width, initial-scale=1">. Avoid user-scalable=no and maximum-scale values below 2.
Why does Google care about the viewport?
Google uses mobile-first indexing. Without a proper viewport, mobile browsers render the page at desktop width and shrink it, which makes text hard to read and taps imprecise.
Why is my page scrolling sideways on phones?
Usually a fixed-width element, a wide image or table, or negative margins. The overflow list shows the elements whose edges extend past the viewport.
Related bookmarklets
Free page speed checker bookmarklet: shows TTFB, FCP, LCP, CLS and page weight from your own browser, then opens…
Free SEO meta tag checker bookmarklet: title, meta description, H1, canonical, robots, hreflang, viewport and Open Graph…
Free image optimization checker: lists every image with file size, format and real vs displayed size, and flags…
Free AMP checker bookmarklet: see if a page links to an AMP version, open it, or find the canonical of an AMP page. No…