I am trying to display an item only on the mobile version. I have the element set to hidden on load for the desktop and wrote the following code for that page:
import wixWindow from ‘wix-window’;
$w.onReady( function () {
if (wixWindow.formFactor === “Mobile”) {
$w(“#text13”).show();
}
});
However, when viewing the page on mobile the element is still hidden and is not showing up. Any ideas?