Custom menu - help please

Hello everybody. Help to understand please.
I made a test project. So, there is only one menu, one menu by default, the second menu is custom. If I reduce the browser window then the custom menu disappears and a button opens the menu. The first click will open the menu, the second click will hide the menu. And if I change the size of the browser window, then the custom menu does not appear again