Previously, iOS users had trouble viewing YouTube videos vertically because there was always a black line that appeared when playing video in that mode.
You've recently updated the version of YouTube iOS and you can now properly play vertical videos. This update was posted on the Android app two and a half years ago, but for some reason has never been posted on iOS.