When mobile "Expand all sections" setting in mobile false, some sections are not collapsed
This is visible on wikidata.org where wgMFCollapseSectionsByDefault is false.
====Steps to Reproduce:
1. Go to your settings ([[https://m.wikidata.org/w/index.php?title=Special:MobileOptions|Special:MobileOptions]]), and see that "Expand all sections" option appears
2. Turn off the option
3. Go to a page with sections AND [[https://www.wikidata.org/wiki/Template:Editnotice|Template:Editnotice]] at the top. Example: [[https://m.wikidata.org/wiki/User_talk:1997kB]]. Observe that **the sections are expanded**.
4. Now go to a page which DOES NOT have [[https://www.wikidata.org/wiki/Template:Editnotice|Template:Editnotice]] at the top but do have sections. Example [[https://m.wikidata.org/wiki/User_talk:Pigsonthewing]]. Observe that **the sections are collapsed**.
====Expected behavior
Both pages should have collapsed sections
Note: Even though one can access [[https://m.wikidata.org/w/index.php?title=Special:MobileOptions|Special:MobileOptions]], the actual option is only shown on devices detected to be mobile and also the bug can only be seen there. Sections are always expanded on desktop irrespective of this setting.