In the layer panel in QGIS there is a button to collapse all layer groups/styles. It would be useful to have the same functionality in QField.