iPhone 13 screen size
The iPhone 13 renders websites at 390×844 CSS pixels in portrait and 844×390 in landscape. It shares the exact same viewport as the iPhone 14, so one test covers them all.
Viewport specs
| CSS viewport (portrait) | 390 × 844 px |
| CSS viewport (landscape) | 844 × 390 px |
| Aspect ratio | 0.462:1 |
| Breakpoint category | mobile |
| Device type | phone |
| Brand | Apple |
CSS media query for iPhone 13
/* iPhone 13 — portrait */
@media (max-width: 390px) {
/* your styles */
}
/* iPhone 13 — landscape */
@media (max-width: 844px) and (orientation: landscape) {
/* your styles */
}Testing tips for iPhone 13
Viewports this narrow are where layouts most often break: check that nothing scrolls sideways, buttons are at least 44px tall, and body text is 16px or larger.
Compare it against a tablet and a desktop width in the same view to catch breakpoint jumps — Responsivly's multi-view does this in one click.
FAQ
What is the iPhone 13 viewport size?
The iPhone 13 has a CSS viewport of 390×844 pixels in portrait orientation and 844×390 pixels in landscape.
What media query targets the iPhone 13?
Use @media (max-width: 390px) for portrait styles, or @media (min-width: 390px) and (max-width: 390px) to target this exact width.
How do I test my website on the iPhone 13?
Open Responsivly, paste your URL and pick iPhone 13 from the device list — it renders your site at 390×844 for free, no signup.