Custom menu on mobile

Are you relying on Bootstrap magic? i.e.
<div class="col-md-12">

AFAIK, Discourse does not have Bootstrap so those class attribute values are superfluous and if you are expecting them to get a particular style applied they won’t.