MobileFrontend supports using an alternative domain for the mobile site, but MediaWiki core itself has no concept of it, leading to all kinds of limitations (not possible to cross-link to the other version, interwiki links lead back to the desktop version). There should probably be support in core for mobile domains (or maybe something more generic like domain variants).
Related:
T100402: Core should have support for mobile detection and customization
T214998: RFC: Remove .m. subdomain, serve mobile and desktop variants through the same URL