How to implement such functionality?
1) in the desktop version, the submenu opens when you hover over the menu item
2) in the mobile version, the submenu expands when clicking on the menu item (not on the icon)
———–
WordPress theme GeneratePress implemented like this
PC: hover – Mob: icon tap
or
PC: press menu item – Mobile: press menu item
necessary
PC: hover – Mobile: press menu item