Rendering issues in the Android Gmail App
If emails opened in the Android Gmail app render the desktop version of the template rather than the mobile one, this could be because of Gmail’s Auto-fit email messages settings. This is, however, not observed in the iOS version of the app.Auto-fit Email Messages Setting
By default, the Gmail Android app turns on auto-fit email messages. Gmail automatically resizes the messages when this setting is on. This causes the desktop version of the template to be rendered instead of the mobile one. When the setting is unchecked, the mobile preview renders fine. Turn off this setting to ensure that the mobile preview is used. To turn it off, do the following:- Navigate to the Gmail app.
- Tap the menu icon on the top left.
- Tap General Settings and uncheck the Auto-fit Email Messages option.
Email Clipping in Gmail
The Gmail client can show clipping messages for many reasons, some of which are listed below:- The size of the email template is large. We recommend limiting the size of the template to within 90KB.
- Gmail may display the text “Message has been clipped” without actually clipping the message if the following characters are present in the email:
- Non-ASCII characters such as the copyright symbol ©, registered symbol ®, trademark symbol ™
- Some HTML entities, such as the ones added for whitespace (nbsp), can cause clipping issues. An HTML entity is of the format
&<entity_code>,and the ones listed below may cause email clipping: - non-breaking space (in a few cases)©- ©copyright®- ®registered trademark¥- ¥ yen£- £ pound¢- ¢ cent
- We recommend that you inspect the HTML template code and remove the above-mentioned entities from it to ensure that clipping doesn’t happen. For example, if you find trailing
at the end or beginning of the template or any used in between the content(or tags) to add a white space likeHello Userin the template, remove it. ReplaceHello Userwith Hello User and resend the email.
- If you observe clipping in test emails, this might be because they have the same subject line. Gmail often combines, or “threads,” emails with the same subject line into a single email in your inbox. If you send several test emails for the same campaign, this may lead to the message becoming so large that Gmail clips it. However, for testing purposes, you can change the subject line or delete the previous test emails in your inbox and then send the test email again.
Blank Preview for Emails
Blank previews could be because Accelerated Mobile Page tags, such as<amp-carousel>, <amp-image>, are being used in the HTML template. AMP tags are not standard HTML tags; AMP is a Google module that works when a script for AMP is added to the HTML.
Script tags are disabled(they get removed) for security reasons by MoEngage. Thus, if AMP tags were added to the email, they would not get rendered, and this will result in a blank preview. For the list of supported HTML tags, refer to the Allowed HTML Tags for Email Templates.
HTML Table with JINJA not working
HTML editors move the JINJA code away from the table to the top if you place the JINJA code between the table content. Let’s say you want to render the names of the products in a table in each row. The below syntax will fail to render correctly in the HTML editor.Does MoEngage Support Dark Mode / prefers-color-scheme Styling in Emails?
MoEngage does not strip, alter, or block dark-mode CSS media queries — including@media (prefers-color-scheme: dark), [data-ogsc], and [data-ogsb] selectors. Whatever CSS you add to your template is delivered to the inbox intact, unmodified by MoEngage or the sending infrastructure (SendGrid).
Check caniemail.com for the current client support matrix before relying on prefers-color-scheme for critical branding elements like logos.
Recommended approach for logos/branding that must survive Gmail’s auto-invert:
Use a single transparent PNG with a subtle white stroke, outline, or drop shadow around the artwork:
- In light mode, the white stroke blends into the white background and is invisible.
- In dark mode (Gmail auto-invert), the background turns black, and the white stroke keeps the logo visible.
As a last-resort, advanced option, you can use a
mix-blend-mode: screen CSS trick to force a white logo to display on inverted dark backgrounds. This requires careful cross-client testing and is not guaranteed to work in every environment. Check support for mix-blend-mode at caniemail.com before relying on this technique.General design tip: choose logo and text colors (for example, grey or brand colors with sufficient contrast in both modes) that remain legible whether or not dark-mode CSS is honored by the recipient’s client.