I have a project that needed this exact thing,
your text needs to be paragraph text,
but the only problem is as the text resizes, the paragraph box also resizes and you may have to stretch the paragraph bounding box horizontally or vertically depending on what you type.
see project enclosed, there are 2 options, text builds down, or text builds from center. the orange solid is your limit and you can change the solid’s dimension. it’s a guide layer, it won’t appear in the final result.