How do I change the position of the sprites to suit different screens?

How can I change the x and y coordinates of the sprites to fit the size of the screen in relation to it?

what i usually did is by placing it based on width and height of phaser scale manager

example :

const img = scene.add.image(...)
img.setPosition(scene.scale.witdh * .5, scene.scale.height * .5)
// this will place object at center of the screen (affected by origin)