Skip to content

Apple · iPhone · 2021

iPhone 13 Screen Size & CSS Viewport

iPhone 13 viewport size is 390 × 844 CSS pixels (1170 × 2532 physical pixels, 3x DPR, 6.1-inch OLED).

CSS Viewport

390 × 844

Physical Pixels

1170 × 2532

Pixel Ratio (DPR)

3x (460 PPI)

Screen Size

6.1" (19.5:9)

Safe Area Insets

47px / 34px

Tailwind Prefix

Default (< 640px sm)

Scaled Viewport Preview
top 47px
390 × 844Portrait · 3x
bottom 34px

Notch top inset (47px portrait) and 34px bottom home bar. Still one of the largest active iPhone install bases worldwide.

Copy-paste CSS

iPhone 13 CSS media queries & safe areas

Use content-based responsive breakpoints first, and reach for these snippets when auditing device-specific edge cases.

Responsive max-width query

/* iPhone 13 Portrait (390x844, 3x) */
@media only screen and (max-width: 390px) {
  /* styles for iPhone 13 and narrower viewports */
}

Exact device & DPR query

/* Target iPhone 13 specifically (390px width, 3x DPR) */
@media only screen
  and (device-width: 390px)
  and (device-height: 844px)
  and (-webkit-min-device-pixel-ratio: 3) {
  /* device-specific overrides */
}

Safe-area inset helpers

/* iPhone 13 safe-area padding (top 47px, bottom 34px) */
.sticky-header {
  padding-top: env(safe-area-inset-top, 47px);
}
.sticky-footer {
  padding-bottom: env(safe-area-inset-bottom, 34px);
}

Frontend QA notes

What breaks most often on iPhone 13

Browser environment: iOS Safari (WebKit) · Mobile.

  • Still heavily represented in global web traffic — verify performance, image payloads, and Safari CSS feature fallbacks.

Side-by-side

Compare iPhone 13 with nearby devices

Check how viewport width and pixel ratio shift across adjacent models.

DeviceViewportPhysicalDPR
iPhone 13390 × 8441170 × 25323x
iPhone 13 Pro Max428 × 9261284 × 27783x
iPhone 14390 × 8441170 × 25323x
iPhone 12390 × 8441170 × 25323x
iPhone 16e390 × 8441170 × 25323x

Test iPhone 13 + 50 devices side by side

Stop resizing Chrome DevTools one viewport at a time. Sizzy renders iPhone 13, narrow 360px Android, iPad, and desktop simultaneously with synced scrolling, unified console, and one-click device screenshots.

Questions

iPhone 13 viewport questions

  • The iPhone 13 CSS viewport size is 390 × 844 pixels in portrait (844 × 390 pixels in landscape).