Skip to content
Nazmul Nikhil
Menu

Content Is Not Sized Correctly (Ahrefs): Fix Sideways Scrolling on Mobile

Ahrefs flags pages whose content is wider than the mobile screen, forcing sideways scrolling. Here's how to find the element that overflows and fix it with CSS.

Nazmul Nikhil

By

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

Published 2 min read
Content Is Not Sized Correctly (Ahrefs): Fix Sideways Scrolling on Mobile
Photo: Gaurav Yadav on Unsplash

In short

Ahrefs flags "Content is not sized correctly" when a page's content is wider than the mobile viewport, so users have to scroll or zoom horizontally. It's a mobile usability problem rather than a direct ranking factor. It usually comes from one oversized element: a fixed-width image, table, iframe or container. Find it with your browser's mobile view and constrain it with CSS.

If a visitor on a phone can scroll the page sideways, something on it is wider than the screen. That's what this issue catches.

Why it matters

Most visitors to small-business sites browse on phones. Sideways scrolling makes text hard to read and buttons easy to miss, and people leave. Google's mobile usability checks have been simplified over the years. Lighthouse, for example, moved several mobile audits out of its SEO category in 2024. But the user problem is the same.

How to find the element that overflows

  1. Open the page in Chrome, press F12, and switch on device mode (the phone icon). Choose a common phone width, such as 375px.

  2. Scroll right. If the page moves, something is too wide.

  3. In the Console, paste this to list elements wider than the screen:

document.querySelectorAll('*').forEach(el => {
if (el.scrollWidth > document.documentElement.clientWidth) console.log(el);
});

Free SEO audit

Not sure which issues matter on your site?

I'll review your site and send you the fixes that matter most, in plain English.

Get my free audit →

Common causes and fixes

Cause CSS fix
Images with fixed widths (width="1200") img { max-width: 100%; height: auto; }
Wide tables Wrap them: .table-wrap { overflow-x: auto; }
Embedded videos or maps (iframes) iframe { max-width: 100%; } or an aspect-ratio wrapper
Containers with width: 1200px Use max-width: 1200px; width: 100%;
Long unbroken text (URLs, code) overflow-wrap: anywhere;
Elements using 100vw plus padding Use 100% instead of 100vw inside padded containers

Platform tips

WordPress: most modern themes are responsive. The usual culprits are page-builder sections with fixed widths, embedded tables and old shortcodes. Fix them in the block's settings, or add the CSS above in Appearance > Customize > Additional CSS (classic themes) or in your theme's custom CSS.

Shopify: check custom sections and apps that inject fixed-width widgets. Add fixes in the theme's CSS file.

Webflow: set elements to max-width rather than fixed widths, and check each breakpoint in the Designer.

Wix: check the mobile editor view separately, because elements can sit outside the mobile frame.

Custom builds: add a global rule for media (img, video, iframe { max-width: 100%; }) and test at 320px and 375px wide in your build checks.

Common mistakes

  • Hiding the overflow on the body (overflow-x: hidden) instead of fixing the element. Content may get cut off, and some sticky elements break.

  • Only testing at one width. Check small phones (320px) as well as common ones.

  • Forgetting the viewport tag. Without it, the whole page renders at desktop width. See "Viewport not set".

This guide isn't affiliated with or endorsed by Ahrefs.

Sources and references

TAGSAhrefs Site AuditContent is not sized correctlyContent wider than screenHorizontal scroll mobile fix
Nazmul Nikhil

About the author

Nazmul Nikhil

Head of SEO & Assistant Manager, Digital Marketing at Notionhive

SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.

Need help with this?

Get it fixed with Mobile SEO

I find the issues that cost you traffic and fix them, starting with the pages that matter most.

Keep reading

Related articles

All Site Audit Issues posts →

Get the next guide in your inbox

One email when a new SEO or AI search guide goes live.

Ready to grow?

Get a free audit of your website, or book a 30-minute call to talk through your goals.

Nazmul Hasan

Talk to Nazmul directly

Reply within 24h

WhatsApp +880 1682835118
nazmulnikhil@gmail.com