Developer and Text Tools

How to Test a Responsive Layout at Every Screen Size

A practical method for testing responsive pages: which widths to check, how to test around breakpoints, synced scrolling, and what only real devices show.

Saizul Amin
Saizul Amin2 Nov 2026 · 3 min read
How to Test a Responsive Layout at Every Screen Size

How to Test a Responsive Layout at Every Screen Size

Responsive design bugs rarely appear at the sizes developers usually look at. They hide in between: a navigation bar that wraps at 790 pixels, a card that becomes too narrow at 412, a table that forces horizontal scrolling on a folded phone. A structured way of testing catches them before your visitors do. This guide describes one, with the free responsive design tester to view many sizes at once.

Viewport width is what matters

CSS layouts respond to the viewport width in CSS pixels, not to the physical resolution of the screen. A phone with a 1179-pixel-wide display reports about 393 CSS pixels. That is why testing a handful of CSS widths covers most devices: small phones around 360 to 375, large phones around 412 to 430, tablets from 744 to 1024, laptops from 1280 and desktops at 1440 and 1920.

Do not forget the meta viewport

Without <meta name="viewport" content="width=device-width, initial-scale=1"> mobile browsers pretend to be 980 pixels wide and shrink the page. It is the first thing to check when a page looks tiny on phones.

See sizes side by side

Resizing one browser window back and forth shows one size at a time and hides how sizes compare. Viewing several frames side by side makes inconsistencies obvious: a heading that wraps differently, an image that crops badly, spacing that jumps between two neighbouring widths.

Test both sides of every breakpoint

Each @media (max-width: 900px) rule is a cliff. Test at 899 and 901 pixels, one pixel on each side. The layout just before a breakpoint is often the most cramped, because it is the narrowest width that still uses the wider design. If content looks squeezed there, move the breakpoint or let the component adapt more gradually with flexible units, clamp() or container queries.

Scroll the whole page

Problems are often below the first screen: a footer with five columns, a long table, a form. Synced scrolling, where all frames move together, makes it quick to walk through the page at every size in one pass.

Typical bugs to look for

  • Horizontal scrolling caused by a fixed-width element, a long URL or an image without max-width: 100%.
  • Text that touches the screen edge because padding was removed at small sizes.
  • Touch targets smaller than about 40 pixels on phones.
  • Navigation that hides links without offering a menu.
  • Hero images whose important part is cropped away on tall, narrow screens.

Landscape and foldables

Rotating a phone gives a short, wide viewport where sticky headers and modal dialogs can cover most of the screen. Foldable phones add very narrow folded widths around 344 pixels and nearly square unfolded ones. Include at least one of each if your audience uses them.

Check content, not only layout

Layout is half the story. Long words in other languages, user names with forty characters and prices with many digits break designs that look perfect with sample text. Paste realistic content into the page, including the longest product name and the biggest number you expect, and look again at every width. Also check images: a photo that crops nicely on a laptop may lose the subject on a tall phone screen, and the CSS object-position property can keep the important part visible.

Screenshots for review

Screenshots at each size help when you ask a designer or client to review a page, and they document the state before and after a CSS change. Keep them with the pull request.

Limits

Viewing a page at a given width in a desktop browser reproduces layout, not the device. It does not simulate touch, the on-screen keyboard, the browser's own toolbars, device pixel density or slow phone processors. Use it to catch layout problems quickly, then confirm on at least one real phone and tablet before release.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages