Is there a setting in AGOL somewhere to retain or add symbology group headers to the Contents/Legend pane?
For example, on the sample web map I published (see attached), I have the Parks and Forest Header under Public Lands in ArcGIS Pro, but it doesn't carry over to the web map, and I can't find anywhere to add it.