if you mean relative to the screen, you should use the code below
this.iw = window.innerWidth;
this.ih = window.innerHeight;
then use this code
let tree = this.physics.add
.sprite(500*this.iw, 300*this.ih, "tree")
.setScale(0.5*(this.iw/this.ih));