Preview on devices
The device toggle shows your app at a phone, tablet or desktop width, both on the editing canvas and in the interactive preview. Use it to catch layouts that overflow, buttons that are too small to tap, and menus that need a mobile variant.
The device toggle shows your app at a phone, tablet or desktop width, both on the editing canvas and in the interactive preview. Use it to catch layouts that overflow, buttons that are too small to tap, and menus that need a mobile variant.
When to use
- Before publishing anything customers will open on their phone.
- When a page uses wide tables, charts or side-by-side layouts.
- To check the Navigation Menu bottom bar and the collapsed menu button.
How to use it
- Open Preview (or stay in Build for a static view).
- Click the Desktop, Tablet or Mobile icon in the toolbar. In preview, tablet and mobile are drawn inside a dark phone-style frame; desktop fills the pane.
- Interact with the page at that size: open the menu button, scroll tables, submit forms.
- Switch back to desktop to compare.
| Device | Preview width | Frame height |
|---|---|---|
| Desktop | Full pane width | Full pane height |
| Tablet | 820 px | 980 px |
| Mobile | 390 px | 760 px |
The same toggle is in the Build top bar, and the Responsive tab in the inspector follows it, so you can go straight from spotting a problem in preview to fixing it on the right breakpoint.
What to look for
- Overflow: content wider than the frame, usually a fixed width or a table with many columns. Hide columns on mobile or let the table scroll.
- Tap targets: buttons and links should be comfortably tappable; use the
mdorlgbutton size on customer pages. - Navigation: the top bar collapses into a menu button under 768 px; a sidebar becomes a block at the top. Check that every page you expect is listed.
- Forms: inputs stack to full width on mobile; make sure labels and help text still make sense.
- Dialogs and drawers: modal pages and drawers take most of the screen on phones; keep their content short.
Testing on a real phone
The preview frame is an approximation. For the real thing, deploy to staging and open the /s/<slug> address on your phone (test data, not visible to customers), or publish and open the live address. Installing the app on a phone requires a published version; see Install as an app.
Common mistakes
- Editing while on mobile and changing desktop by accident. In Build, the Layout tab always edits the desktop base; use the Responsive tab for mobile-only changes.
- Judging text size on the scaled canvas. The Build canvas may be scaled down to fit; the preview pane shows real sizes.
- Expecting touch gestures. The preview uses mouse events; swipe gestures, the camera and geolocation are best tested on a real device through staging.
Advanced
Device widths come from DEVICE_WIDTH (desktop: 1200, tablet: 820, mobile: 390). The breakpoint is detected from the width of the app root inside the frame, so a 390 px frame triggers the mobile breakpoint (≤ 639 px) and an 820 px frame the tablet breakpoint (640–1023 px). The Build canvas renders at the device width and scales to fit the available space; the caption shows the scale percentage.