HubSpot CTA Mobile Design: How to Hide Images & Optimize Pop-ups for Small Screens

HubSpot CTA Mobile Design: How to Hide Images & Optimize Pop-ups for Small Screens

Hey ESHOPMAN community! We all know how crucial mobile experience is, especially when it comes to capturing leads or driving sales with those eye-catching CTAs. But sometimes, what looks fantastic on desktop can turn into a jumbled mess on a smaller screen. This common headache recently popped up in the HubSpot Community, and the discussion offered some really valuable insights we want to share with our ESHOPMAN users.

The original poster was grappling with a classic scenario: a newsletter pop-up CTA with an image and text block. On desktop, it was perfect. On mobile, however, the image and text were stacking awkwardly, taking up too much space and potentially harming the user experience. Their question was simple but profound for any marketer or store owner: "Is there a way to hide the image on the mobile version? Or another way to ensure the CTA loads properly on mobile?"

The HubSpot Solution: Smart Rules to the Rescue

This is where HubSpot's built-in smart features really shine. One helpful community member jumped in with a direct, actionable solution that leverages HubSpot's responsive design capabilities and smart content rules. Let's break down how you can implement this for your own CTAs and pop-ups.

First, it’s important to understand why things stack. HubSpot's responsive layout feature, often found under "CTA > Design > Enable responsive layout," is usually toggled on by default. When enabled, columns within your CTA (or other modules) will naturally stack on smaller screens to ensure content remains readable, rather than shrinking to an unreadable size. While this is great for basic responsiveness, it doesn't always account for design preferences like hiding specific elements.

Here’s the step-by-step guide to hide an image on mobile using HubSpot's Smart Rules:

  • Step 1: Check Responsive Layout. If 'CTA > Design > Enable responsive layout' is on, columns stack. This is standard for responsiveness, but we'll override for specific elements.

    CosminExplore_0-1775222148868.png

  • Step 2: Use Smart Rules for Your Image. In your image module, find 'Smart rules.' This allows device-specific content, powerful for personalization.

    CosminExplore_1-1775222532499.png

  • Step 3: Define Device-Specific Content. In Smart Rules, select 'Editing for: Mobile' and delete the image. For 'Editing for: Default (Desktop),' keep your original image.

    CosminExplore_2-1775222562163.png

The original poster confirmed this approach worked perfectly for hiding the image on mobile, immediately improving the layout.

Beyond Hiding: Fine-Tuning Mobile Layouts (The Padding Question)

But the conversation didn't stop there. A common follow-up challenge emerged: what if you don't hide the image, or perhaps replace it with a mobile-optimized one, but find it's still too broad or lacking proper spacing on smaller screens? The original poster noted that even after hiding the image, the mobile version might still feel 'very broad' and asked for tips on padding.

This is where things get a bit more technical, venturing into custom code. The expert community member explained that adding specific padding, like increasing the left-right margins, typically requires injecting custom CSS into your site's main stylesheet. They suggested a snippet like this:

margin-left: 15px;
margin-right: 15px;

However, they also highlighted the trickier part: 'The more difficult task would be to find your CTA ID inside the stylesheet.' This is a crucial point. Applying custom CSS generally requires identifying the specific element you want to style. While HubSpot's drag-and-drop editor is fantastic, precise pixel-perfect control often means diving into the code, which can be daunting for those less familiar with web development. This perfectly illustrates why, while HubSpot is an incredible platform and even considered by many as the best online shopping website builder for its integrated CRM and marketing tools, sometimes advanced customization pushes you towards custom code. For e-commerce stores using HubSpot, a polished mobile experience across all elements, including pop-ups, is non-negotiable.

ESHOPMAN Team Comment

This HubSpot Community discussion really hits home for us at ESHOPMAN. The core solution using Smart Rules to hide images on mobile is brilliant and exactly the kind of practical advice we love. It leverages HubSpot’s native capabilities effectively. However, the follow-up regarding custom CSS for padding highlights a common friction point: while HubSpot offers incredible flexibility, achieving absolute pixel-perfect design sometimes requires technical expertise. We believe that for e-commerce, ensuring a flawless mobile experience is paramount, and ideally, these granular styling options should be more accessible within the builder itself, reducing the need to hunt for CTA IDs in stylesheets. For ESHOPMAN users, we constantly strive to simplify these advanced styling controls within our storefront builder, so you can focus on selling, not coding.

Optimizing your CTAs for mobile isn't just a 'nice to have' – it's fundamental. A seamless mobile experience directly impacts conversion rates, whether for landing pages, pop-ups, or e-commerce storefronts. The HubSpot Community offers practical solutions to leverage the platform's power. Always test designs across devices and experiment with smart features. Your customers (and conversions!) will thank you.

Share: