MailViewr - Free HTML Email Preview Tool
← CSS Support Index

Does CSS @media (orientation) Work in HTML Email?

Media query that applies styles based on whether the viewport is in portrait or landscape orientation.

Quick Answer

Does @media (orientation) work in HTML email?

The CSS @media (orientation) property is supported in Gmail, Outlook (Mac / Web), Apple Mail, Samsung Email, and others. It is NOT supported in Outlook (Windows), Yahoo! Mail, Thunderbird, and others. Always include a safe fallback for unsupported clients.

Which Email Clients Support CSS @media (orientation)?

CSS support for @media (orientation) across email clients

Email ClientDesktopMobile / WebNotes
Gmail✓ Yes✓ Yes
Outlook (Windows)✗ No?
Outlook (Mac / Web)✓ Yes✓ Yes
Apple Mail✓ Yes~ Partial
Yahoo! Mail✗ No✗ No
Samsung Email?✓ Yes
Thunderbird✗ No?
ProtonMail✗ No✗ No
Fastmail✓ Yes?

Notes

  • #1 Buggy. The first rule inside a media query is not prefixed.
  • #2 Partial. `orientation:portrait` is not supported.

Frequently Asked Questions

Related CSS Properties

Test Your Email Now

Paste your HTML and see how it renders in clients that don't support
@media (orientation).

Open Email Previewer