Theoretically, you could cover all of Nevada (~70M acres) & Arizona (~73M acres) with solar panels.
That would only give you enough vertical farm space for ~16M acres, and apparently the US only has ~10M acres for farmland for fruits & vegetables.
Point being - this seems implausible - and I'm not sure how you work around that.
IIUC, it takes about 1 acre to produce ~.12MW solar (obviously differs based on where the panels are). The world installed 168GW of solar in 2021 - so that's 1.4M acres of solar.
It'd take 100 years of solar production to cover that much area with solar panels.
And for what?
Cattle uses 4.5x more land by itself. We use 3x as much space to grow most of our calories (grains and oils) - replacing that with vertical farms seems like something from an alien civilization that is way to far away to imagine.