# iPhone XR Simulator: screen size 414×896, DPR 2

> Test responsive layouts at iPhone XR screen size: 414×896 CSS px, pixel ratio 2. Free mobile simulator preset from iHateBugs.

Canonical: https://ihatebugs.dev/devices/iphone-xr
Last updated: 2026-10-17

The iPhone XR preset uses a 414×896 CSS pixel viewport (portrait) at a 2× device pixel ratio, so the screen draws 828×1792 physical pixels.

Test it free in the [Mobile Simulator](https://ihatebugs.dev/mobile-simulator).

Specs pending verification. The resolution comes from the maker or Chrome DevTools, but the viewport and pixel ratio have not been published by the maker or measured on the device.

## Specs

| Field | Value |
| --- | --- |
| Brand | Apple |
| Type | Phone |
| OS | iOS |
| Released | October 2018 |
| Viewport (CSS px, portrait) | 414×896 |
| Pixel ratio (DPR) | 2 |
| Physical resolution | 828×1792 |
| Touch | Yes |
| User agent | Mozilla/5.0 (iPhone; CPU iPhone OS 18_7 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/27.0 Mobile/15E148 Safari/604.1 |
| Specs verified | Pending verification |
| Sources | [github.com](https://github.com/ChromeDevTools/devtools-frontend/blob/main/front_end/models/emulation/EmulatedDevices.ts), [support.apple.com](https://support.apple.com/en-us/111868), [support.apple.com](https://support.apple.com/en-us/108044), [apple.com](https://www.apple.com/newsroom/2018/10/iphone-xr-now-available-around-the-world/) |

## Same viewport as

- [iPhone 11](https://ihatebugs.dev/devices/iphone-11): Apple, 414×896 CSS px viewport, released September 2019

## Similar sizes

- [Pixel 11 Pro Fold · cover](https://ihatebugs.dev/devices/pixel-11-pro-fold-cover): Google, 411×892 CSS px viewport, released August 2026
- [Pixel 10 Pro Fold · cover](https://ihatebugs.dev/devices/pixel-10-pro-fold-cover): Google, 411×901 CSS px viewport, released October 2025
- [Pixel 7 Pro](https://ihatebugs.dev/devices/pixel-7-pro): Google, 411×891 CSS px viewport, released October 2022
- [Galaxy S26 Ultra](https://ihatebugs.dev/devices/galaxy-s26-ultra): Samsung, 411×891 CSS px viewport, released February 2026

## CSS media query

```css
@media (max-width: 414px) {
  /* styles for iPhone XR and narrower screens */
}
```

## FAQ

### What is the iPhone XR viewport size?

414×896 CSS pixels in portrait, which is what CSS media queries see. With a device pixel ratio of 2, that is 828×1792 physical pixels.

### Which devices have the same viewport as the iPhone XR?

iPhone 11 uses the same 414×896 viewport, so a page lays out identically on them.

### How do I test my site at iPhone XR size?

Open the free iHateBugs Mobile Simulator on your page and pick iPhone XR. The page renders at 414×896 CSS pixels, and it works on localhost too. In CSS, @media (max-width: 414px) matches this width and anything narrower.
