Steps to Reproduce
Note that the appearance of the table of contents pushes down the remaining content.
In comparison, https://en.m.wikipedia.org/wiki/Inflorescence works fine.
MobileFormatter is supposed to add a placeholder for table of contents (MFTOC) via the AddMobileTocTransform - to reserve space for table of contents.
The logic seems to be linked to whether desktop shows a table of content or not. In the first example, no table of contents is needed since the page is so simple. In the latter, it is needed.
- The placeholder is not present so when the table of contents is inserted it pushes all content down
Testing Environment for QA
This should be tested on the beta cluster
- No table of contents should appear on https://en.wikipedia.beta.wmflabs.org/wiki/Selenium_Echo_mention_test_0.503982997665737
- On https://en.m.wikipedia.beta.wmflabs.org/wiki/Ronald_Reagan scroll to the table of contents. Refresh the page. The table of contents should not push content down the page.