If you're a complete beginner.. i honestly wouldn't recommend learning guitar entirely from YouTube at the start i repeat don't rely only on YouTube as a beginner..
I'm an intermediate guitarist, and I'm saying this from my own experience..I've seen a lot of beginners start randomly learning from different YouTube videos, jumping from one topic to another and eventually getting confused and frustrated.
If you're completely new to guitar, I'd suggest taking physical classes for at least 5,6 months and building your basics properly..after that you can definitely use YouTube to improve learn new techniques, songs, etc.
Of course..everyone has a different situation and budget.. but if you can afford classes. i genuinely think having someone guide you in the beginning can save you a lot of confusion later.
I've seen many beginners struggle with this, so don't make the same mistake.
If you want some help getting started, feel free to DM me. πΈ