Skip to content
1440px

iPhone 12 mini Screen Size

CSS viewport, native resolution, pixel ratio and safe area for the iPhone 12 mini — the numbers you need to design and build for it.

CSS viewport · portrait
375 × 812 px

Native resolution 1080 × 2340 px at 3× · 476 PPI · 5.42″ · 9:19.5. Design at 375 × 812 and export assets at 3×.

iPhone 12 mini display specifications
PropertyValue
CSS viewport (portrait)375 × 812 px
CSS viewport (landscape)812 × 375 px
Native resolution1080 × 2340 px
Device pixel ratio
Pixel density476 PPI
Screen diagonal5.42 in
Panel size2.27 × 4.92 in
Aspect ratio9:19.5
Total pixels2.53 MP
Released2020
Operating systemiOS
Safe area (top / bottom)44 / 34 px

Among the 130 phones on this site, the iPhone 12 mini has the 89th largest CSS viewport area. Its 375 px width is 24 px below the 399 px average for this category.

Targeting the iPhone 12 mini in CSS

Device-specific media queries are brittle — a new model with the same width will not match. Use them for genuine per-device fixes only, and prefer width buckets for layout.

CSS media query
/* Target iPhone 12 mini specifically */
@media only screen
  and (device-width: 375px)
  and (device-height: 812px)
  and (-webkit-device-pixel-ratio: 3) {
  /* … */
}

/* More useful in practice — the width bucket it falls into */
@media (min-width: 375px) { /* … */ }

Safe area on the iPhone 12 mini

Notch. Content placed inside the top 44 px or the bottom 34 px will sit under system UI unless you inset it.

Safe area insets
/* iPhone 12 mini safe area — requires viewport-fit=cover */
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">

.app {
  padding-top:    env(safe-area-inset-top);    /* 44px */
  padding-bottom: env(safe-area-inset-bottom); /* 34px */
  padding-left:   env(safe-area-inset-left);
  padding-right:  env(safe-area-inset-right);
}

Compare with other iPhone models

iPhone 12 mini compared with nearby iPhone models
DeviceCSS viewportNativeDPRPPIDiagonal
iPhone 12 mini375 × 8121080 × 23404765.42″
iPhone 12 Pro390 × 8441170 × 25324606.06″
iPhone 12390 × 8441170 × 25324606.06″
iPhone SE (2nd gen)375 × 667750 × 13343264.7″
iPhone 12 Pro Max428 × 9261284 × 27784586.68″
iPhone 13 mini375 × 8121080 × 23404765.42″
iPhone 11 Pro375 × 8121125 × 24364585.85″
iPhone 13 Pro390 × 8441170 × 25324606.06″
iPhone 13390 × 8441170 × 25324606.06″

Questions about the iPhone 12 mini screen

What is the screen size of the iPhone 12 mini?

The iPhone 12 mini has a 5.42-inch display. In CSS the viewport measures 375 × 812 px in portrait, and the panel itself has 1080 × 2340 physical pixels at 476 PPI.

What resolution should I design for on the iPhone 12 mini?

Design at 375 × 812 and export assets at . That gives you 1080 × 2340 px images, which is exactly what the panel renders. Designing directly at 1080 × 2340 means every measurement is 3 times larger than the CSS values you will write.

What is the device pixel ratio of the iPhone 12 mini?

The iPhone 12 mini reports a device pixel ratio of 3. One CSS pixel therefore covers 9 device pixels. You can read it in JavaScript with window.devicePixelRatio.

Why does 375 × 3 not equal 1080?

Because the iPhone 12 mini renders at 1125 × 2436 and then downsamples that frame to the 1080 × 2340 panel. Apple does this on the models where the panel resolution does not divide evenly into a whole scale factor. For your CSS and your asset exports, the 3× figure is the one that matters.

What are the safe area insets on the iPhone 12 mini?

In portrait the safe area inset is 44 px at the top and 34 px at the bottom (Notch). Use env(safe-area-inset-*) rather than hard-coding these — the values change per device and per orientation.

Which other devices have the same viewport as the iPhone 12 mini?

4 other devices share the 375 × 812 CSS viewport: iPhone 13 mini, iPhone 11 Pro, iPhone XS, iPhone X. A layout that works on one works on all of them.

Related

Specifications from the manufacturer's published device data. Last verified 7 August 2026. CSS viewport values are the portrait window.innerWidth/innerHeight reported by the stock browser with no browser chrome. See methodology and sources.