Invoke ui.sidebar.collapse() on entering mobile mode
Invoke ui.sidebar.collapse() on entering mobile mode. This will improve compatibility with modules that are trying to get visible part of the scene.
For example, this will fix Lock View autoscaling the scene when 'Exclude Sidebar' option is enabled.