CSS drop down menu doesn't work on iPhone

You don’t have to enable/disable as you only enable it once on page load. The hamburger is hidden with the media query so can only be clicked when it’s showing.

There are many examples on the web showing how to do this and as you see from my demo you can if pushed do it with css alone although I think is is safer to use JS for greater browser support.

If really needed you can use ‘matchmedia’ in Js which is like media queries for js but there’s no real need here.

Take a little time to search around the web as there are some good examples of how to make hamburger menus work.

If you are still stuck then show an example of your desktop menu and I’ll try and show you how to tie it all together.