It might be easier to simply switch the functionality between the primary and secondary menu.
They have identical options, so you style them to look like each other.
That way, your “Secondary” menu can look and act like your primary menu (no mobile menu), and your “Primary” menu can look and act like your Secondary menu, with the mobile menu.