Have the same problem with my new iPhone 11, fixed by turning on and off location service. This recalibrated the compass in this iPhone. I had the same problem on my iPhone 6, same fix recalibrate compass on iPhone.
I always check the red arrow on the blimp to make sure it’s facing the right...