I want to make a responsive email template with MJML, it looks good on most of the email rendering clients, but (of course) Outlook 2003 is doing it differently, as you can see in the image: Outlook 2003 is rendering both, the mobile and the desktop version.
The complete code is here which you can try here: https://mjml.io/try-it-live/Bk5Gu1w9L
<mjml owa="desktop">
<mj-head>
<mj-breakpoint width="320px" />
<mj-style>
@media screen and (max-width:320px) {
.show_on_desktop td{
display: none !important;
}
}
@media screen and (min-width:321px) {
.show_on_mobile td{
display: none !important;
}
}
.show_on_mobile td {
mso-hide: all;
font-size: 0;
max-height: 0;
line-height: 0;
}
</mj-style>
</mj-head>
<mj-body>
<mj-raw><!--[if !mso]><\!--></mj-raw>
<mj-section>
<mj-column css-class="show_on_mobile">
<mj-image src="https://www.ecom-ex.com/fileadmin/user_upload/images/products/one-pager/gallery/ex-handy_10_dz1dz2/ex-handy_10_dz1_teaser_1.png"></mj-image>
<mj-text>show on mobile</mj-text>
</mj-column>
</mj-section>
<mj-raw><!-- <![endif]--></mj-raw>
<mj-section>
<mj-column css-class="show_on_desktop">
<mj-image src="http://c64os.com/resources/c64c-system.jpg"></mj-image>
<mj-text>show on desktop</mj-text>
</mj-column>
</mj-section>
</mj-body>
</mjml>
The rendering is tested via EmailOnAcid which does not provide a free account to play around.
We tried many versions, this was the best looking so far, but Outlook 2003 (and some others) are showing it not as we were hoping for.
We are discussing about ignoring some old clients as Outlook 2003, but a solution instead of ignoring it, would be really nice.