Board Thread:Support Requests - Getting Technical/@comment-37184454-20201017144755/@comment-9605025-20201017191021

To answer your question, no. There is not way to do this using Lua or magic words. MediaWiki simply does not provide such methods.

When someone views the website on their mobile device using a web browser, there are two ways they can be viewing it: the mobile layout and the desktop layout. Fandom's mobile layout hides certain things. When it comes to templates, it will hide the template depending on the template's designated type. For example, an infobox is not hidden while a notice template is hidden. You can read more about the different template types here. Another way to hide things in the mobile layout is to add the class "hidden" to it. If you are using wikitext that does not permit the specification of a class, then you need to wrap that portion in something that does such as a div tag. Then assign the class to the wrapper. The method that Parkour2906 proposed applies when users are viewing the wiki on their mobile device using the desktop layout. When in desktop layout, you could also use JS for this but that would be an overkill as CSS is sufficient.