I have ae email in which I have a cell with a background image. I need to change this image src for mobiles. Is it possible to do this ? I see a lot of examples using the <img>
tag but in my case this is a background image.
I have decided to cut the background image in Outlook (bulletproof bg wasn't enough) so basically my code looks like this
<!--[if lt mso 9]> <!-->
<td
background="https://assets.myjobglasses.com/email/campaigns/aladdin/red-carpet.png" bgcolor="#ffffff"
valign="top" align="center"
style="background-repeat: no-repeat;"
height="<%= red_carpet_height %>"
class="red-carpet-bulletproof-background"
>
<!--<![endif]-->
<!--[if gte mso 9]>
<td
valign="top" align="center"
height="<%= red_carpet_height %>"
class="red-carpet-bulletproof-background"
>
Instead I'd like to use this image on mobile. How can I do this ? (I can choose to duplicate the code and add some visibility classes, but if my emails are too long Gmail will choose to cut the visible part so I'd like to avoid such drastic measures)