Hide Header and Footer on Desktop only

This can be done now using the code

import wixWindow from "wix-window";

$w.onReady(function () {
    if (wixWindow.formFactor === "Desktop") {
        $w("#header").hide();
        $w("#footer").hide();
    }
});

or you can use collapse