I have found many articles describing how you cannot configure the sidebar on Confluence Cloud and I have made my peace with that. Confluence's philosophy is that this should be in the end of the user. Fine.
How can the user collapse the sidebar on a mobile web browser? Our users do not use the Confluence Mobile App so we need a mobile web browser centric solution.