Looks like there's a new bug in Confluence that causes the table of contents to show briefly when a page is loading then disappear. Happens on macOS 12.3.1 with Chrome Version 101.0.4951.54 and Safari Version 15.4.
Reported as bug CGF-3878
Update May 6: Fixed! Thank you