How to hide/show side menu on big screens

Hello, so here is the deal, I can’t hide side menu on screens higher than 990px. On the screens that are bigger than 990px it is always shown and I can’t hide it.

What I tried is that I setup a button to call these functions:
On Constructor i called private ionMenu: IonMenu

then on the button:
this.ionMenu.toggle();
this.ionMenu.open();

But these only work on small screen and on on the bigger screens.

I need to hide the side menu on higher screens and the user to be able to open it or swipe to open the side menu whenever they want.

Thanks in advance, Milot.

Yep, just found a fix.

on app.component.ts on the add when=“false”

<ion-split-pane when="false">

Now it works. Thanks.