Can someone advise me how to mimic media queries (CSS) so that I can hide my anchor menu on tablet/other smaller view ports?
You should use wixWindow.formFactor :
https://www.wix.com/corvid/reference/wix-window/formfactor
I mean…
//import…etc…
$w.onReady(()=> {
if(wixWindow.formFactor !== ‘Desktop’){
$w(‘#elementId’).collapse();
}
})