The canvas element that Phaser creates will be simply be appended to the document at the point the script was called, but you can also specify a parent container in the game config should you wish.
It says…
How can I create one in a desired location?
See parent
in Phaser.Types.Core.GameConfig.
Thank you