Instead of adding some html in LocalSettings to apply in Mobile view (since I still do not know how this can be done) a workaround is to include the html in the minerva.mustache file, right after <div id="content" class="mw-body">{{{contenthtml}}} for it to appear at the end of any content page.
This works fine with the exception that I have several wikis using the same MobileFrontend extension, while the code should ideally only be apply to one of the wikis.
Is there a way to include conditional output in minerva.mustache depending on which wiki is used?
In a regular php program, I could add something like follows:
if ($_SERVER["SERVER_NAME"] == "www.example.com") {
helloworld!
?>
But this isn't possible from within the minerva.mustache template file as far as I know.
Does anyone have a better idea?