What the previewer is for
Seeing your layout at a phone, tablet, and desktop width simultaneously catches responsive bugs far faster than dragging a browser window. The device presets use real CSS viewport dimensions (an iPhone 14 is 390×844 CSS pixels, not its 1170×2532 hardware pixels) — and CSS viewport pixels are exactly what media queries and breakpoints respond to, so the breakpoint behavior you see here matches a real device’s. Rotate to swap width and height and watch how breakpoints change orientation, just like a real handset.
How framework breakpoints line up
If you use Tailwind, its mobile-first prefixes map to min-width queries:
| Prefix | Min width | Typical device |
|---|---|---|
| (none) | 0 | All sizes / mobile base |
sm: | 640px | Large phones |
md: | 768px | Tablets |
lg: | 1024px | Small laptops |
xl: | 1280px | Desktops |
2xl: | 1536px | Large desktops |
This tool highlights which breakpoints are active at the current width, so you can see at a glance which responsive classes will apply.
Why some URLs won’t load
If you paste a live URL and get a blank frame, the site is almost certainly sending X-Frame-Options: DENY or Content-Security-Policy: frame-ancestors 'none' — a security measure that blocks embedding in an iframe (most large sites do this). It’s not a bug in the previewer. The workaround is HTML mode: open the page, copy its source, and paste it in to preview your own markup without the iframe restriction.
Media queries vs container queries
A modern caveat: media queries respond to the viewport, but components increasingly need to respond to their container (a card that’s narrow in a sidebar but wide in the main column). That’s what container queries solve, and they can’t be exercised by viewport-resizing alone. For component-level responsiveness, pair what you see here with container queries (and the container query units cqi/cqw from the CSS Units Converter). Use the previewer for page-level breakpoints; reach for container queries when a component must adapt to its own width regardless of screen size.