Try this.
float offSet=899;//Standard Heigth 899 pixel;(my phone)
In setup()
size(displayWidth,displayHeight);
offSet=displayHeight/offSet;
…statements
in Draw()
if (height>900) {scale(offSet);}
…statements
in mouse Pressed()
if (mouseX>= 190offSet && mouseX<= 290offSet && mouseY>=10offSet && mouseY<=100offSet) { …statements
}