Resizing cocos canvas

Hello, I would like to ask if there is a way to actually change the size of the game canvas from the index.ejs. I have tried enforcing CSS on it to resize the width and height, but it just resulted it from either stretching the whole canvas and game. Plus adjusting it result for the buttons not being to be clickable. I am unsure if this is even possible to do but if so, I thank you in advance.