MobileCheck

Xiaomi 14 & 15 viewport size

Xiaomi 14 / 15 (2023) lays web pages out at 400 × 890 CSS pixels with a pixel ratio of 3.

Viewport, portrait400 × 890
Viewport, landscape890 × 400
Device pixel ratio3
Screen resolution1200 × 2670
Aspect ratio20:9
Visible on first load400 × ~794

Browser bars and the visible area

The viewport height is the whole screen, but Chrome on Android keeps part of it for its own interface. In portrait about 80 px at the top (status bar and address bar) and 16 px at the bottom (navigation bar) are covered, leaving roughly 400 × 794 CSS px for the page when it first opens. In landscape the bars take about 80 px.

794 px visible page 80 px: status + address bar 16 px: navigation bar 400 × 890 screen
To scale: the part of the screen a page gets when it first opens in Chrome on Android.

That is why 100vh can be taller than what people see. Use 100svh for the smallest visible height, 100dvh for the current one, and keep the most important content and buttons within the first 794 px.

Your screen vs the Xiaomi 14

Comparing with your browser window needs JavaScript. The Xiaomi 14 is 400 × 890 CSS px; check your own viewport.

Media queries that match the Xiaomi 14 & 15

Media queryPortrait (400px)Landscape (890px)
(min-width: 360px)matchesmatches
(min-width: 390px)matchesmatches
(min-width: 414px)nomatches
(min-width: 480px)nomatches
(min-width: 600px)nomatches
(min-width: 768px)nomatches
(min-width: 1024px)nono
(min-resolution: 2dppx)matches
(pointer: coarse) and (hover: none)matches (touch screen)
/* Xiaomi 14 / 15, portrait */
@media (max-width: 400px) and (orientation: portrait) { … }

/* high-density screen (3×) */
@media (min-resolution: 3dppx) { … }

Rather than targeting one device, write fluid styles and add breakpoints where your layout needs them — the same CSS then works on the hundreds of models with similar sizes.

Testing on the Xiaomi 14 & 15

Android phones render with Chromium, the engine behind Chrome. Pixel ratios like 3 mean thin borders and small images can look blurry or uneven — check them at the real ratio. See how to test a website on Android.

The Xiaomi 14 / 15 is one of the 54 devices in the free check.

Similar phones

Screen size comparisons

All mobile viewport sizes → · Compare any two devices →

Frequently asked questions

What is the Xiaomi 14 & 15 viewport size?

400 × 890 CSS pixels in portrait and 890 × 400 in landscape, with a device pixel ratio of 3.

What is the Xiaomi 14 & 15 screen resolution?

1200 × 2670 physical pixels (the CSS viewport multiplied by the pixel ratio of 3).

How much of the screen does the browser take on the Xiaomi 14 & 15?

About 80 px at the top and 16 px at the bottom in portrait with Chrome on Android, so roughly 794 CSS px of the page is visible when it first opens.