A user needs to hide a popup form’s left-side image on mobile devices while keeping it visible on desktop. The popup displays differently across devices, with the image appearing on both when it should only show on desktop.
Technical Solution Provided:
The popup was added via an app, requiring JavaScript rather than pure CSS
A custom JS class was shared to inject CSS into the app’s shadow DOM
Code targets the specific app container and applies display:none to the image element on screens ≤768px wide
Implementation: Add code to Assets > global.js file in theme editor
Key Details:
Solution uses setInterval to wait for popup element to load before injecting styles
Container ID must be customized per site (e.g., #app-embed-container-85724)
CSS class names may vary between implementations
Follow-up:
Another user encountered the same issue; adjusted code was provided with their specific container ID and CSS class names to match their site’s configuration.
Summarized with AI on November 1.
AI used: claude-sonnet-4-5-20250929.