iPhone 11 vs iPhone 12: screen size and viewport
The iPhone 11 lays web pages out at 414 × 896 CSS px with a pixel ratio of 2; the iPhone 12 at 390 × 844 with 3. The iPhone 11 is 24 px wider and 52 px taller. The iPhone 12 has more physical pixels, but that only makes it sharper: the CSS viewport decides how much of a page fits.
The two screens side by side
Specs compared
| Spec | iPhone 11 | iPhone 12 | Difference |
|---|---|---|---|
| Viewport, portrait (CSS px) | 414 × 896 | 390 × 844 | +24 px wide, +52 px tall |
| Device pixel ratio | 2 | 3 | −1 for the iPhone 11 |
| Physical resolution | 828 × 1792 | 1170 × 2532 | iPhone 12: 100% more pixels |
| Aspect ratio | 19.5:9 | 19.5:9 | about the same |
| Visible height, portrait, with browser bars | ~719 px | ~667 px | +52 px for the iPhone 11 |
| Landscape width (CSS px) | 896 px | 844 px | +52 px for the iPhone 11 |
| Visible height, landscape | ~364 px | ~340 px | +24 px for the iPhone 11 |
| First released | 2019 | 2020 | 1 year apart |
| Engine in MobileCheck | WebKit (Safari) | WebKit (Safari) | same engine |
CSS px are the units media queries see. Visible heights subtract the status bar and the Safari on iOS bars as set in our device profiles; real bar heights vary with settings and scrolling. The release year is that of the first model with each screen.
What this means for your layout
How the width difference affects your layout
The iPhone 11 is 24 CSS px wider (414 vs 390, 6% more). One common breakpoint falls between them: (min-width: 414px) (a common large-phone test width) matches the iPhone 11 but not the iPhone 12, so a rule written for that width applies on only one of the two.
In a 2-column card grid with 16 px page padding and 16 px gaps, each card is 183 px wide on the iPhone 11 and 171 px on the iPhone 12. Check that buttons, prices and long words still fit in the narrower one.
Pixel density and image sizes
The iPhone 12 has the denser screen: 3× against 2×. A full-width image (sizes="100vw") needs about 1170 px on the iPhone 12 and 828 px on the iPhone 11 to look sharp — more on the iPhone 12 even though its viewport is narrower.
With a srcset such as 640w, 828w, 1080w, 1290w, 1440w, 1640w, 2048w, the browser would normally pick the 828w file on the iPhone 11 and the 1290w file on the iPhone 12. Leave out the 1290w candidate and the iPhone 12 upscales a smaller file.
How much fits above the fold
On first load about 719 px of the page is visible on the iPhone 11 and 667 px on the iPhone 12: 52 px less (8%) on the iPhone 12, roughly 2 lines of 16 px body text at a 1.5 line height.
If your main button sits just above the fold on the iPhone 11, it can end up below it on the iPhone 12. Keep the headline and the main action within the first 667 px, and size full-screen sections with 100svh rather than 100vh — see the 100vh problem on mobile.
In landscape
Turned sideways, the iPhone 11 is 896 px wide and the iPhone 12 844 px. The visible height drops to about 364 and 340 px, so a 64 px sticky header covers 18% and 19% of the screen — under the 25% at which MobileCheck flags fixed bars covering the page.
Same browser engine
Both are Apple devices, so both render with WebKit, the engine behind Safari. Engine quirks are the same; the differences above come from size and density alone. Chrome DevTools only emulates the size and still draws with Chromium, so check Apple devices in a WebKit browser — see how to test on an iPhone.
More about these devices
- iPhone 11 viewport size — one screen for the iPhone 11 / XR
- iPhone 12 viewport size — one screen for the iPhone 12 / 13 / 14 / 16e
Or open the free check with the iPhone 11 and the iPhone 12 preselected: full-page screenshots in WebKit, with problems such as small text and crowded buttons highlighted.
Related comparisons
- iPhone 14 vs Galaxy A54 — 390 vs 384 px wide, 3× vs 2.813×
- iPhone 14 vs iPhone 15 — 390 vs 393 px wide, 3× vs 3×
- iPhone 14 vs iPhone 14 Plus — 390 vs 428 px wide, 3× vs 3×
- iPhone 13 vs iPhone 17 — 390 vs 402 px wide, 3× vs 3×
- iPhone 11 vs iPhone 15 — 414 vs 393 px wide, 2× vs 3×
- iPhone SE vs iPhone 16e — 375 vs 390 px wide, 2× vs 3×
Compare other devices → · All mobile viewport sizes →
Frequently asked questions
Is the iPhone 11 screen bigger than the iPhone 12?
In CSS pixels, which decide how much of a page fits, the iPhone 11 is larger: 414 × 896 against 390 × 844. The iPhone 12 has more physical pixels (1170 × 2532), which makes it sharper rather than roomier.
Do I need different CSS for the iPhone 11 and the iPhone 12?
Only if your breakpoints fall between 390 and 414 px: a min-width query at 414px applies to one and not the other. A fluid layout handles both without device-specific rules.
How much of a web page is visible on the iPhone 11 vs the iPhone 12?
About 414 × 719 CSS px on the iPhone 11 and 390 × 667 on the iPhone 12 when a page first opens in portrait, after the status bar and Safari on iOS's bars. Bar heights are our device profiles' estimates.