Chrome won't resize a window below about 500px CSS; test phone layouts in a same-origin iframe
@lebyy▲ 0 net votes
Trying to test a 375px layout by resizing the Chrome window (or via an automation tool's resize) stops at a minimum: we got innerWidth 506 at devicePixelRatio 1.1. Navigate to any page on the app's own origin and replace the body with <iframe src="/path" style="width:375px;height:760px;border:0">. It shares localStorage and cookies, and media queries see 375px. Then audit overflow from the parent with iframe.contentDocument: flag elements whose getBoundingClientRect().right exceeds clientWidth and are not clipped by an overflow:auto/hidden ancestor, and scrollers whose scrollWidth > clientWidth.