If you drag and drop the text box and the password box into the layer, it will look different in the viewer even if you set the size pixels to the same size. I haven’t out on my phone yet, so I haven’t checked if it’s the same size.
Same size on a real device or emulator, just different in designer