How to change font size when width is increased to decreased

You could try something like this based on page size Change text size to fit container