The results of an Arcade expression to return the geometry of a feature layer is shown in a label in Map Viewer Classic but not in the Map Viewer in ArcGIS Online if the spatial reference of the hosted feature layer and /or the basemap of the web map is not WGS84.