Currently, I am facing an issue with my mobile menu. It is toggled by JavaScript code when the user clicks the mobile menu icon.
The main problem arises when resizing the screen from a mobile view to a larger view - the menu remains open.
I attempted to hide the mobile menu for larger screens using media queries. However, it seems that the toggle method added display:block
to the element, making it difficult for the media query to override this style.
How would you suggest fixing this particular issue?