How to disable Gmail mobile app's automatic image scaling in HTML emails?

I’m working on creating HTML emails that need to display properly on different devices and email clients. My email template uses table-based layout with inline CSS styles. I’ve also added a media query that sets the maximum width to 600px.

The problem I’m facing is with the Gmail mobile app on Android devices. Instead of respecting my media query or allowing the email to scale naturally, the app automatically resizes the entire email content and images to fit within its viewport. This messes up my carefully designed layout.

I noticed that there’s a manual setting in Gmail app where users can disable auto-resize, and when that’s turned off, the email displays correctly like it would in a web browser.

Is there any way to control this behavior from the email code itself? Can I add some CSS or meta tags that would prevent Gmail app from auto-resizing my content? I want the app to either follow my media queries or just let the email scale normally without forcing its own resize logic.

After dealing with this headache for months, I found that adding <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> in the email head sometimes helps, though it’s hit or miss with Gmail. The real solution that saved my sanity was switching to a hybrid approach using div-based layouts with fallback tables. Gmail’s auto-resize seems less aggressive when it encounters certain div structures with proper CSS resets. Also worth noting that different versions of the Gmail app behave differently - what works on one Android version might break on another. I now build two separate templates when the budget allows: one optimized for Gmail’s quirks and another for everyone else. It’s extra work but beats spending hours trying to make one template work everywhere.

Unfortunately, there’s no reliable way to override Gmail’s auto-resize behavior through code alone. I’ve been dealing with this exact issue for about two years now in my email marketing work. Gmail’s mobile app applies its own viewport scaling regardless of what CSS or meta tags you include in your email. What I’ve found works better is designing with Gmail’s scaling in mind from the start. Instead of fighting it, I create templates that look good even when scaled down. This means using larger font sizes, more padding, and testing specifically on Gmail mobile during development. The viewport meta tag and CSS media queries work great for other clients, but Gmail mobile essentially ignores them in favor of its own rendering engine. Your best bet is to educate clients about the Gmail setting you mentioned, though most users will never change it. Focus on making your emails readable even with the automatic scaling rather than trying to prevent it.

been there, done that! gmail mobile is honestly a nightmare for email devs. one workaround thats worked for me sometimes is setting a fixed table width around 320px specifically for mobile and using !important on key styles. not perfect but gmail seems to respect it more than media queries. also try adding style="width: 100% !important; max-width: 600px !important;" directly on your main table.