ok, I tried this on my staging site. It turns out that the culprit is Autoptimize option “Optimize Javascript code?” is active. Deactivating it allows for the menu to work properly.
I wish this wasn’t the case as this option does seem to help but better to have a functioning mobile menu.