If you are a laptop user, it would be more convenient to rotate a YouTube video; you can use tools like Ezgif. Here are the steps you can follow to do it.
Open the Ezgif website.
You will see the rotate option there; tap on it.
Upload the video or paste the link directly and rotate the video!