Canvas contents change when I change the game window's size. Help please,Make ui elements stay same size when window size is changed?

Hi, I am currently making a game. As I am making the main menu right now, I found that when i resize the game window, the size and position of the items in the canvas change. Anyone have a fix?,Hi, Im making a game and I am currently making the main menu of it. When I resize the Game window, the contents of the canvas change their size and position. Anyone have a fix?

Change the overlay size to scale with screen size. Then set the anchors on all the objects accordingly