MobileCheck

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.

iPhone 11414 × 896
iPhone 12390 × 844
Width difference24 px
Visible height~719 vs ~667

The two screens side by side

iPhone 11414 × 896 CSS px~719 px visiblebars 47 + 130 px
iPhone 12390 × 844 CSS px~667 px visiblebars 47 + 130 px
Page area on first load (outlined) Status bar and browser bars (shaded)Both screens to the same scale in CSS pixels, portrait. Bar heights are the values of our device profiles, so treat the visible area as approximate.

Specs compared

SpeciPhone 11iPhone 12Difference
Viewport, portrait (CSS px)414 × 896390 × 844+24 px wide, +52 px tall
Device pixel ratio23−1 for the iPhone 11
Physical resolution828 × 17921170 × 2532iPhone 12: 100% more pixels
Aspect ratio19.5:919.5:9about the same
Visible height, portrait, with browser bars~719 px~667 px+52 px for the iPhone 11
Landscape width (CSS px)896 px844 px+52 px for the iPhone 11
Visible height, landscape~364 px~340 px+24 px for the iPhone 11
First released201920201 year apart
Engine in MobileCheckWebKit (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

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

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.