Dynamic menus will make your site slower by making repeated database queries. Instead, create category-wise static pages and display your contents there. You can also copy-paste the page code into a WordPress widget and makes it show on the sidebar. Also, you can set it to display only on the specific pages/posts or categories.
No i am not talking about that sql queries i need to convert html to wordpress where i need to make menu menus are coming but styles and classes are not coming so i need that php snippet used with html template css for navigation