In the desktop view, the buttons on the left function as a toggle and a user of the app is able to show or hide the legend or layer list by clicking the same button.
However, this doesn't work for mobile and for longer layer lists or legends, the close button is often only visible after scrolling.

This example shows the layer list, the close button is not visible.
Can you make the buttons on the bottom behave as a toggle as well, so that when my user click or tick the active blue layer list button, the layer list is closed and turns white again?