Non responsive header

Hello, I put the logo into header and it doesnt work properly on most of devices :frowning: Always is something missing either part of the logo or a part of the menu.
My friend helped me to put your code bellow to my site. Unfortunatelly the code is not working and the whole page cannot be loaded because of not enough memory.
Could you please help me how to let logo and menu in header without having trouble with responsivity?
import wixWindow from ‘wix-window’;
$w.onReady(function () {
wixWindow.getBoundingRect()
.then( (windowSizeInfo) => {
if (windowSizeInfo.window.width <= 1000){
$w(“#horizontalMenu1”).rendered = false;
}
} );
});

Thank you very much,
Renata

As I understand, ‘rendered’ is a read-only property and cannot set to a specific value. Try using

$w("#horizontalMenu1").collapse( );