Is there a way to set the fitting strategy for layout text elements through code?
This might be what you're looking for;
TextElement—ArcGIS Pro | Documentation