There is no good reason for using id's in MobileFrontend. They cause headaches when trying to implement new features due to competing CSS rules and they point to an architecture that needs more thought. For example the #section_0 heading.
We should aim to remove any id selectors, leaving only those that are needed to override local templates or styles in MediaWiki core.
The use of IDs has caused pain in the implementation of T139794