How do i rescale text size with constraints?

ive been trying to make a dialogue box that scales properly to PC and mobile screens but for some reason, the text size isnt scaling even though the text label is scaling fine. how can i make the text size get smaller as the dialogue box gets smaller?



ive tried turning on TextScaled, but that makes the text way bigger than what i want it to be.
(also for the “end goal” picture, i just rescaled the text with the textsize property just to show what im trying to do)