Hello,
It is because of another Mobile menu type, you can just change the type via Theme Options https://gyazo.com/d6db728d221a155af18705009b283665 , and do not use the mentioned code.
Regards