LegendURL with WMS-C and WMTS

Hello!
I’m using Geoserver 2.25.3.
I configured some caching layers, but the WMS-C capabilities document does not contain styling metadata, also the LegendURL node is missing.

The WMTS capabilities document does contain styling metadata, but the height and width are bigger than in the WMS capabilities → the legend is too big.

There is a way to solve those two problems?

In the Layer Caching setting there is a styling section, but the only possible choise is LAYER DEFAULT, so I cannot change anything here.

Best regards.