My canvas "grows" magically when the game gets bigger

So ive tried to make a inventory gui but when i press play and go into full screen it gets all weird and looks really bad can someone explain why?

Do you have any Canvas Scaler components anywhere besides the one on your top-level canvas?

This is because your anchors are not set properly.
Here is a video of my Asset “Better UI” which describes what you need to do: