Sub topic 6
Checking rendering across clients, devices and dark mode
This chapter assumes you know basic HTML and CSS, have used an email platform's test-send feature, and have a seed list of test inboxes from the earlier chapter on test sends. It covers how to check that one email looks acceptable across the many programs that display it.
Why rendering differs
A web page is drawn by a few browser engines that follow shared standards. An email is drawn by whatever program the recipient uses, and those programs disagree about HTML and CSS. Three examples:
- Outlook for Windows (the classic desktop version) uses Microsoft Word's engine to draw HTML. It ignores many layout properties, adds unexpected spacing, and handles background images poorly.
- Gmail rewrites the code it receives. It strips some CSS, and it clips long messages (see the size limit below).
- Apple Mail is the most capable client. A message that looks right there tells you little about the others.
Because of this, "it looks fine in my inbox" is only one data point. The goal of rendering tests is not pixel-perfect matching everywhere. The goal is that every major client shows a message that is readable, correctly ordered, and has working calls to action.
Decide what to test
You cannot test every client and device combination. Pick a target list from your own data.
- Open your platform's reports and find the client breakdown for recent campaigns. Many platforms report email client or device share.
- Keep the clients that make up most of your opens, plus any that are historically troublesome (usually classic Outlook).
- Keep at least one phone in each major family (iPhone and Android) and one desktop client.
Treat open data with caution. Apple Mail Privacy Protection preloads images and inflates "opens" for Apple clients, so those clients may look more common than they are. Use the numbers to rank clients, not to measure them precisely.
| Client group | Typical concern | What to look for |
|---|---|---|
| Apple Mail (macOS, iOS) | Dark mode, generally good CSS support | Colors after dark mode switches |
| Gmail (web, Android, iOS) | Clipping, stripped CSS, forced dark mode | Message length, missing styles |
| Outlook for Windows (classic) | Word rendering engine | Broken columns, spacing, buttons |
| Outlook.com and new Outlook | Dark mode color changes | Logos and text contrast |
| Smaller or older clients | Limited CSS, blocked images | Layout order, readable fallback |
Two ways to preview
Preview tools. Services such as Litmus and Email on Acid, and the preview features built into some platforms, render your HTML in many clients and return screenshots. They are fast and cover a wide range. Their screenshots are approximations, and they can lag behind client updates.
Real devices and accounts. Send your test to seed addresses that you open on actual phones and desktop apps. This is slower, but it shows things screenshots miss: how images load, how a tap behaves, and how your sender name and subject line appear in the inbox list.
A practical routine is to use a preview tool for breadth and real devices for the two or three clients that matter most to your audience.
What to check in each client
Go through the same list every time so results are comparable.
- Layout order. On narrow screens, columns should stack in the order you intend. Check that the main message and the primary button appear without excessive scrolling.
- Width. Content should not scroll sideways. A common design width is about 600 pixels, which scales down on phones.
- Text size. Body text of roughly 14 to 16 pixels or more is easier to read on a phone. Tiny legal text should still be legible.
- Tap targets. Buttons and links should be large enough to tap, and spaced so neighbouring links are not hit by accident. Around 44 by 44 pixels is a common guideline.
- Images off. Many clients block images until the reader allows them. With images blocked, the message should still make sense, which depends on alt text and on live text rather than text baked into pictures.
- Fonts. Custom web fonts load in only some clients. Always specify fallback fonts and check that the fallback looks acceptable.
- Buttons. A button built only with CSS padding can collapse in classic Outlook. Test the primary call to action there specifically.
- Size and clipping. Gmail clips messages whose HTML is larger than about 102 KB and shows a "View entire message" link. Clipping can hide your footer, including the unsubscribe link, and can break tracking. Check your HTML file size, and remove unused code and comments if you are near the limit.
Dark mode
Dark mode lets readers view email with light text on a dark background. Clients handle it in three different ways, and you should expect to see all three.
- No change. Some clients leave your colors alone.
- Partial inversion. The client changes only colors that are light backgrounds, leaving darker ones, and may adjust text color.
- Full inversion. The client changes nearly all colors automatically. Gmail apps and some Outlook apps do this, and you have limited control.
Clients that honor your own dark-mode instructions, such as Apple Mail, let you declare support and supply your own colors. Support differs between clients and changes over time, so verify with real tests rather than assuming.
The usual failures are:
- A logo with a transparent background and dark text, which disappears on a dark background.
- Dark text on a background image or color that the client did not invert, giving low contrast.
- White boxes around images with a solid white background, which look like patches.
- Buttons whose colors were inverted so that text and background are too close.
Fixes include giving logos a thin light outline or a safe solid background, avoiding pure white and pure black where inversion is likely, and providing a dark-mode version of key images.
This skeleton shows the declarations for clients that honor them:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="light dark">
<meta name="supported-color-schemes" content="light dark">
<style>
body { background-color: #ffffff; color: #222222; }
.cta { background-color: #0b5fff; color: #ffffff; }
@media (prefers-color-scheme: dark) {
body { background-color: #121212 !important; color: #eeeeee !important; }
.cta { background-color: #6aa0ff !important; color: #000000 !important; }
}
</style>
</head>
<body>
<p>Body text that must stay readable in light and dark mode.</p>
<p><a class="cta" href="https://example.com/offer">View the offer</a></p>
</body>
</html>The !important flags help the dark rules override inline styles, which most email builders write. Clients that ignore prefers-color-scheme skip this block entirely, which is why you still test them separately.
Recording results
Keep a short table for each campaign template, so you do not rediscover the same problems.
| Client | Device | Light mode | Dark mode | Images off | Notes |
|---|---|---|---|---|---|
| Apple Mail | iPhone | Pass | Pass | Pass | None |
| Gmail app | Android | Pass | Logo hard to see | Pass | Add light outline |
| Outlook classic | Windows | Button spacing off | Not supported | Pass | Use a bulletproof button |
After a template passes once, you usually only need to retest what changed. If you edit the layout, buttons, or images, repeat the full set.
Common errors
- Testing only in the client you use every day.
- Trusting a preview screenshot without opening a real send on a phone.
- Checking dark mode but not the images-off state, or the reverse.
- Letting a late copy edit push the message past the Gmail clipping size.
- Forgetting the mobile view of the footer, where small links crowd together.
Exercise
A test send looks correct in Apple Mail on iPhone, but in the Gmail Android app the dark-mode view shows your dark-text transparent logo as nearly invisible. Why did Apple Mail not show the problem, and what are two ways to fix it?
Show answer
Gmail's app applies its own color inversion, while Apple Mail honors your declared color scheme and dark-mode styles, so the two clients treat the logo differently. The transparent logo with dark text ends up dark on a dark background in Gmail. Two fixes: add a thin light outline or glow to the logo, or place it on a solid light background so it stays visible. Providing a separate dark-mode logo image also works in clients that support it.
Exercise
Your campaign template's HTML is 130 KB. In Gmail the message ends partway down with "View entire message". Name the harm this can cause and one way to reduce it.
Show answer
Gmail clips the message above about 102 KB, so the footer, including the unsubscribe link and legal details, may be hidden, and tracking pixels placed at the bottom may not load. Reduce the HTML size by removing unused CSS, comments and repeated inline code, shortening long link URLs, or trimming content.