I have built a WPbakery custom grid with a hover effect, that displays an overlay and additional text when hovering. From the code I saw, that the css class vc_is-hover is added when hovering over. That all works as intended.
However when an user on a mobile phone (iPhone) clicks on that element (so he gets on the article) and then uses the back button of the browser, the overlay is still displayed. So I assume, that the vc_is-hover class is still set.
I tried to add this code to remove the css class when the document is loaded, but that does not work:
jQuery( document ).ready(function() {
jQuery(".vc_grid-item-mini").removeClass( "vc_is-hover" );
});