Yosemite is one of the busiest parks in the country. You'll need to check on line for the time frame you are considering - but I've heard there is now a "reservation" system, even to just drive through Yosemite Valley. That's how they limit how many cars can enter at any one day to avoid gridlock. And I've also heard you have to book months out to get a reservation.
I used to live within 2 hours drive of Yosemite - had to go up over Tioga Pass; that trip itself is one of the most scenic in the country. So I'd visit at least once a year. No more. The horror stories of the crowds - not even possible to find a place to park at the various scenic turnouts - keep me away. I refuse to fight over my "wilderness" experience with thousands of people.
Pic I took in Yosemite 40 years ago:
View attachment 794311