See Office Hours below for working through this problem. Jump 5:42 for the start of the answer
The HTML elements are position in CSS pixel units but the PlayCanvas elements screen corners will use screen coordinates which will be dependent on the device pixel ratio.
Fixed project: https://playcanvas.com/project/877545/overview/UIComponents%20with%20DPR