Hope you are doing well!, nice to hear that our recommendation works properly for you, would you please mark this answer as a solution as an appreciation.
You need to add this class custom-menu-primary in your main header class and paste the below css and script either in that custom module or in respective css and javascript then your toggle option will come in mobile menu