Hey. I need some help…
I’ve made two custom HTML, one for desktop and one for mobile. But they both show on desktop and mobile. What am i doing wrong?
The one for mobile:
The one for desktop:
A user created separate HTML blocks for desktop and mobile versions of an image but both were displaying on all devices. The issue stemmed from using CSS classes (show-on-mobile, hide-on-desktop, etc.) without corresponding CSS rules to actually control visibility.
Solution provided:
display: none and display: block to toggle visibilityOutcome:
The solution was successfully implemented and resolved the problem. The original poster confirmed it “works like a dream” and marked the response as the accepted solution.
Hey. I need some help…
I’ve made two custom HTML, one for desktop and one for mobile. But they both show on desktop and mobile. What am i doing wrong?
The one for mobile:
The one for desktop:
Hi @JTMollerup ,
I have written updated HTML with CSS. You can use the code below in the HTML section to toggle image visibility based on the device type. This updated HTML allows you to remove duplicate blocks and keep only a single HTML structure.


If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!
Thank you
Hello Theycallmemakka.
Thank you so much, it works like a dream!