@AnneWatson's spot on about ventilation—that's what catches most people out. I've got flexible panels on my narrowboat and the difference between gluing them flat to the roof versus creating an air gap is night and day for longevity.
The adhesive alone (even proper marine-grade stuff like 3M 5200) will eventually fail if you've got moisture trapped underneath. Thermal cycling makes it worse—materials expand and contract at different rates, and any water trapped in there will degrade both the adhesive and whatever substrate you're mounting to.
What actually worked for my setup: used small aluminium spacer blocks (about 20mm) along the frame to create that crucial air gap. Allows water vapour to escape. I also drilled a couple of small weep holes near the bottom edge so any condensation that does form can drain out.
The flex panels themselves handle the mounting method better than rigid ones would, but they're still relying on that adhesive for a significant portion of the load. Proper mechanical fastening through the frame to solid structure is non-negotiable—adhesive as secondary backup only.
Worth the extra effort up