The answer is in the CanvasScaler, by setting UI Scale Mode to Scale With Screen Size.
You should consider working through some UI tutorials before going too much further down the UI rathole.
Here are some notes on UI Anchoring, Scaling, CanvasScaler, etc:
1 Like