The iPhone 16 viewport used by Mobile Preview is 393 × 852 CSS pixels in portrait and 852 × 393 in landscape. The camera is a Dynamic Island.
Size at a glance
| Portrait | 393 × 852 px |
|---|---|
| Landscape | 852 × 393 px |
| Aspect ratio (height / width) | 2.17 |
| Camera | Dynamic Island |
| Tailwind (portrait) | below sm (under 640px) |
| Tailwind (landscape) | md (768px and up) |
These are CSS (layout) pixels, the sizes used by the Mobile Preview frame. Real devices can differ slightly with the browser interface, the display zoom setting or the operating system version.
Test it in CSS
Prefer breakpoints based on your content over device-specific rules. If you need to reproduce this exact size, for example to debug a layout, this media query matches it in portrait:
@media (width: 393px) and (height: 852px) {
/* iPhone 16, portrait */
}The Dynamic Island cuts into the top of the screen in full-screen layouts. Add viewport-fit=cover to your viewport meta tag, then pad fixed headers with env(safe-area-inset-top) so nothing hides behind it.
Devices with the same viewport as the iPhone 16
These frames use the same 393 × 852 viewport, so one check covers them all:
Preview the iPhone 16 in VS Code
The iPhone 16 frame is included in the free version of Mobile Preview. Install the extension, start your dev server, run “Mobile Preview: Show” and pick the iPhone 16 from the device menu: your page appears in the frame next to your code and reloads when you save.
Similar widths
- iPhone 11 (414 × 896)
- iPhone 12 Mini (375 × 812)
- iPhone 13 Pro (390 × 844)
- iPhone 16 Pro (402 × 874)
- iPhone 17 (402 × 874)
- iPhone 17 Pro (402 × 874)
Frequently asked questions
- What is the iPhone 16 viewport size in CSS pixels?
- 393 × 852 in portrait (width × height) and 852 × 393 in landscape, as used by Mobile Preview. The physical screen has more pixels than this; CSS pixels are what your layout sees.
- Which Tailwind breakpoint does the iPhone 16 fall in?
- With Tailwind's default breakpoints, the iPhone 16 is below sm (under 640px) in portrait and md (768px and up) in landscape.
- Can I preview my site on the iPhone 16 in VS Code?
- Yes. The iPhone 16 frame is included in the free version of Mobile Preview.
All device sizes · FR · ES · PT · DE