StoicBuilder

HandbookV the OfficinaTesting on phone sizes

Vthe Officina, Use the tools

Testing on phone sizes

1 min readUpdated 28 November

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.

Widths worth checkingbrowser
320px small phones; WCAG expects layouts to work here360-430px most phones in use today768px a tablet held upright1024px a tablet on its side, small laptops1280px a typical laptop
Drag the width through each of these and watch what moves.

What goes wrong

  1. 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.

  2. 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.

  3. 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

Copy this into Lovable, Bolt, Cursor or any agent
Give me a checklist of every page and what to look for on each at 320 and 375 pixels wide, so I can go through them in device mode. Then fix what I report, and keep form text at 16px or larger so iPhones don't zoom in when someone taps a field.

Quick check

Sign in to earn +10 XP for it

Quill 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?

Got a prompt that touches testing on phone sizes?

Paste it. You get a better prompt first, then the cards that explain it.

Check your own prompt

Free, no sign-up.