Explore Bato Web Agency Webflow Certified Partner Profile Explore Bato Web Agency Webflow Certified Partner Profile

How do you test a website on different screen widths without using device presets?

Illustration without a description Illustration without a description

Use a resizable responsive viewport and enter exact CSS pixel dimensions instead of selecting named devices. Continuous resizing reveals the widths where content starts to crowd, wrap or overflow. Responsive defects belong to layout conditions, not to a particular phone model. Device presets can then confirm a few common environments.

 

Open the browser’s responsive design mode, choose the generic responsive option and drag the viewport handles slowly. Watch navigation, grids, tables and long headings while moving across the full supported range. Stop wherever the content looks strained, even if that width is far from a declared breakpoint.

 

Set exact widths around each CSS threshold: one pixel below, the boundary itself and one pixel above. Repeat for container-query components by changing their parent width. Use window.innerWidth or document.documentElement.clientWidth to log the layout viewport when the browser UI does not show it clearly.

 

console.table({
innerWidth: window.innerWidth,
clientWidth: document.documentElement.clientWidth,
innerHeight: window.innerHeight
});

 

Width testing needs varied height as well. A 390-pixel-wide viewport can be tall in portrait or very short after rotation. Reduce height to expose oversized heroes, menus and sticky bars. Test browser zoom and larger text because the effective content capacity can shrink without a viewport-width change.

 

Save a compact set of content-driven widths for automated screenshots, including the narrowest supported value and any width tied to a past defect. Manual continuous resizing remains useful because automation samples fixed points. Confirm final behavior carefully on real devices for keyboard, touch, toolbar and rendering-engine differences.