How to calibrate accelerometer sensor on Google Nexus 6P?
I have this too, and likewise it has persisted after getting a replacement device. It interferes with panoramas and photospheres, cardboard and the like. No idea on a fix. I think I'll do a second replacement.