A good, permanent, fixed solar panel should produce steady energy output for 25 to 30 years, but it's best to check whether the panel includes a warranty. We have witnessed our fair share of cheap panels that stop working after a few years not including warranties.
Many portable solar panels are made of lighter materials and are unlikely to last that long. They are at risk of damage during transportation or after prolonged use in the home, so it is best to buy durable panels that can withstand the hazards of travel.