iPhone6 to iPhoneX: what happened to camera?
Are you using a metallic or magnetic case? If you are, try removing it and re-taking the video.
The parts used by the optical image stabilizer may interfere with the magnetic or metallic case, and can cause problems like this.