Hello, you will need something like this oneā¦
This code is just an example-code and not tested.
You will have to optimize it to get it to work.
import wixWindow from 'wix-window';
$w.onReady(function () {
let formFactor = wixWindow.formFactor
console.log(formFactor)
if(formFactor === "Mobile"){
//do something here when ----> MOBILE-WINDOW
$w("#text33").show();
$w("#text34").show();
$w("#box1").show();
}
else if(formFactor === "Desktop"){
//do something here when ----> DESKTOP-WINDOW
}
} );