iPad Mini: viewport size

768 × 1024 CSS pixels · Apple tablet

The iPad Mini viewport used by Mobile Preview is 768 × 1024 CSS pixels in portrait and 1024 × 768 in landscape. The camera is a no cutout.

Size at a glance

Portrait768 × 1024 px
Landscape1024 × 768 px
Aspect ratio (height / width)1.33
Camerano cutout
Tailwind (portrait)md (768px and up)
Tailwind (landscape)lg (1024px and up)

These are CSS (layout) pixels, the sizes used by the Mobile Preview frame. Real devices can differ slightly with the browser interface, the display zoom setting or the operating system version.

Test it in CSS

Prefer breakpoints based on your content over device-specific rules. If you need to reproduce this exact size, for example to debug a layout, this media query matches it in portrait:

@media (width: 768px) and (height: 1024px) {
  /* iPad Mini, portrait */
}

Tablets are wide enough to trigger tablet or desktop layouts: check navigation that switches between a menu icon and a full bar, and multi-column grids, in both orientations.

Preview the iPad Mini in VS Code

The iPad Mini frame is part of Mobile Preview Pro (€6.99, one-time payment, no subscription). The free version includes the iPhone 16, iPhone 17 and iPhone 17 Pro Max. Install the extension, start your dev server, run “Mobile Preview: Show” and pick the iPad Mini from the device menu: your page appears in the frame next to your code and reloads when you save.

Install Mobile Preview · Step-by-step guide

Similar widths

Frequently asked questions

What is the iPad Mini viewport size in CSS pixels?
768 × 1024 in portrait (width × height) and 1024 × 768 in landscape, as used by Mobile Preview. The physical screen has more pixels than this; CSS pixels are what your layout sees.
Which Tailwind breakpoint does the iPad Mini fall in?
With Tailwind's default breakpoints, the iPad Mini is md (768px and up) in portrait and lg (1024px and up) in landscape.
Can I preview my site on the iPad Mini in VS Code?
Yes. The iPad Mini frame is part of Mobile Preview Pro (€6.99, one-time payment). The free version includes the iPhone 16, iPhone 17 and iPhone 17 Pro Max.

All device sizes · FR · ES · PT · DE