In plain words
Device mode in DevTools shrinks the page to a phone or tablet screen and imitates touch, so you can spot layouts that break before a customer does.
Where you see it
With DevTools open, click the phone-and-tablet icon at the top left, or press Ctrl+Shift+M (Cmd+Shift+M on a Mac). A bar appears above the page where you pick a device such as iPhone SE, or drag the edges to any width.
What goes wrong
- Treating the preview as a real phone
Device mode resizes Chrome; it doesn't run Safari. iPhone-only problems, like the page zooming in when you tap a small input, only show up on a real device.
- Checking one phone size
A layout that fits 390 pixels can still break at 320, where long words and side-by-side buttons run out of room. Drag the width down slowly and watch.
- Menus that open on hover
A phone has no hover to wait for, so a menu that opens when the mouse passes over it never opens at all. Make sure every one also opens on a tap.
What to tell your agent
Quick check
Sign in to earn +10 XP for itQuill looks perfect in device mode at iPhone size, but on Maya's actual iPhone the page zooms in whenever she taps the search box. Why?