When we have a field with different values the legend gives us a range bar. Can we modify the size of the range bar?

Checked most of the ESRI documents but could not find a way to achieve this.
Our requirement is to increase the size of this color bar and show it horizontally on the web map that we have published and using it on Experience builder.
I was not able to find a way to do this using the available legend widget on experience builder, so I thought using ArcGIS Pro and then publish the layer again with the changes but still on ArcGIS pro also I am not able to achieve this.
If I check the properties of the legend item, it lets me switch it to be horizontal, Increasing the patch size can make it wider.
This works for printed/exported maps in pro but not for web maps.
Attached is the image of how we want to resize our legend in Web Map on portal:

Appreciate your help on this!