How can i make ui bigger if resolution smaller and ui smaller if resolution higher?

Hello, i wanted to make so the ui gets big if on playing on a small resolution like 4:3.
On Unity UI System.
Any ideas?

Use a canvas scaler and set the scaling mode to constant physical size.

It doesnt size it, instead it does spaghetti stuff and breaks the ui and if i go to 4:3, its just not changing the ui.

I want it like UGUI, the old unity ui which was coded, So if you changed resolution, the ui size wouldnt change. only where elements would be at, so if you played at a small resolution, everything on the ui would be big, but if you played on a large resolution, everything on the ui would be small.

Then use Constant Pixel Size for the canvas scaler.