I’m having some trouble hiding a dropdown link on mobile devices.
This element has an interaction attached to it and works great on desktop, but my plan is to hide it on mobile devices as I’m not using the interaction on it. To work around this, I decided to create a separate dropdown link on mobile devices but I’m still not able to hide the one using the interaction. Seems like it may be a bug but I’m not sure.
If you go to mobile views and click the hamburger in the top left, you will see 2 “shopping cart” dropdowns at the bottom. The one on the bottom is the one I can’t hide.
We also came across this issue with a project and created a script that allows you to show or hide any desired element based on the device, OS or browser being used by the site visitor.
Here is a link to the tutorial video that goes through the problem as well as walking you through the solution.
If there are any questions please feel free to tag me!