How to make a GUI Frame Wrap around another GUI?

Hi there other developers,
I’ve been running into this issue where my gui go out of the frame shown in this video. (link below)

I wanted to know how to fix this and make it so the frame always warps around the Buttons.
(The image labels are also sorted with a UIGridLayout if that helps).
Help would be greatly appreciated!

Did you try to scale UIGridLayout? or you want it to be offset?

yes i scaled the gridlayout but it when the screensize changes it still comes out of the frame

it should be scale every UI element inside it maybe redo it or smth.