Solar panel lifespan is very closely tied to cost. China makes some extremely affordable PV panels, but they do not last as long as the older, non-China panels. There are some very old solar panels out there still operating, but a large number of them are removed from service and replaced with new panels with better output through repowering subsidies/incentives, not because they have reached end of life. The bigger issue with PV is the inverters, which, like any other modern electronic, tends to also come from China and their failure can take out the system, if it's old enough.
Wind turbines have only gotten bigger, as have the blades, which increases the stresses on them. This is why we've seen a lot of premature blade failures recently, that we didn't see with the older, smaller ones. They live and operate in a very harsh environment, so there's a limit as to how durable you can make them while still making economic sense, the latter which, has been a problem for offshore wind, which stopped going down in price and in fact has gone up.