What can I do to make my game centered on screen?
When I export it to the website and then test it the game is shown at the top center on the webpage.
Post link of your website.
Develop games in your browser. Powerful, performant & highly capable.
You might just want to use a fullscreen mode so it takes up the whole page, rather than just centering.