Bug 44918: MF part of code that forbids legacy gadgets in mobile view

Parent commit: https://gerrit.wikimedia.org/r/#/c/60954/

Bug: 44918

Change-Id: Ibc43852486041b940464310201654e4fa6c53c6e