Preview:
document.addEventListener("DOMContentLoaded", function() {
        var mediaQuery = window.matchMedia("(min-width: 641px)");
 
        function handleChange(e) {
            if (e.matches) {
                var el = document.querySelector(".fusion-no-medium-visibility.fusion-no-large-visibility #wpgs-gallery");
                if (el) {
                    el.remove();
                }
            }
        }
 
        // Run once
        handleChange(mediaQuery);
 
        // Run when screen crosses 641px breakpoint
        mediaQuery.addEventListener("change", handleChange);
});
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter