I have a popup module that is triggered off of a shortcode icon click. I have the popup to only trigger once per day. However, the shortcode/icon remains visible even if the popup trigger is disabled (eg. the visitor has already clicked to view the popup in a given day).
The reason I am going this route is because mobile exit intent popups are non existent so I decided a fixed email icon in the bottom right of the screen would be more successful/less annoying than triggering off of time or scroll %.
Support recommended a script to check if the module ID selector isn't :visible and then hide the shortcode/icon selector. This seemed to work initially. However, upon further testing, the script was hiding the shortcode/icon regardless of if the trigger is active or not.