I have a template that I am trying to convert into a custom theme and it contains a mobile menu that is a duplicate of the main menu.
What is the best way to tackle this with the least amount of duplication?
I tried to create a menu--main.html.twig file and repeated 2 menus in one file. It looked liked it worked at first until my menu contains submenus and then some weird behavior where it nested both menus into the below menu. I would like to avoid creating a separate mobile menu in the admin dashboard and manually adding new links if created, but if that is the best way then I can handle it. Just looking for other opinions.