How to fit UI to screen size?

Hello, I have a problem with UI in unity. Currently, this is how the UI looks in HD resolution:


Which is perfect and just the way I want it. But when we change the screen size to something different like free aspect it looks like this:

Is there a way to scale the UI objects to fit the screen size?

My Canvas Scaler Component looks like this:
7560343--935206--upload_2021-10-9_18-16-21.png
Thanks in advance!

Yes, it’s all possible with anchors and sub-objects and other layout tools such as AspectRatioFitter.

Here are some notes on UI Anchoring, Scaling, CanvasScaler, etc:

https://discussions.unity.com/t/845782/4

https://discussions.unity.com/t/848795/5

I’d suggest setting Screen Match Mode at Canvas Scaler Component to Expand.