Currently, MediaWiki:Gadgets-definition allows setting targets= with default being just desktop.
But Gadget definition namespace pages don't allow setting targets. The default is desktop. There's no way to enable a gadget on mobile. This is a clear bug, and hence a blocker for gadget repo migration.
Possible solutions:
- Add targets option in gadget definition namespace. (A patch by @Lens0021 exists - https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Gadgets/ /616197). Default remains just desktop.
- Add targets option but make the default desktop mobile.
- In light of T127268, don't add a targets option and always use desktop mobile. This means during the migration, all gadgets would start loading on mobile, likely causing increase in logged client-side errors (T262493)