Prohibit changing the resolution of the game WebGl

I have a WebGL game. The browser window can be changed as you like, so the game can be severely deformed. How to make the game always maintain its proportions regardless of the browser resolution