Can you get a screw out?
You need to confirm that the frame attached with screws as opposed to bolts and nuts. If screws and they are spinning, there are several reasons: The screw is snapped off, The screw corroded and is too thin, the hole is too wide.( most probably if you have screws. In this case it is possible that the fiberglass is rotten, In that case the windshield should be removed to make repairs.
If you have nuts and bolts, the nuts could have come loose but that is more likely a result of structural issues with the fiberglass, If you have nuts and you can get to them, for sure try tightening. Do not use sealant or adhesive yet. You may end up needing to remove the frame.
In the less likely event that the screws themselves corroded and rusted perhaps, you will need to insure that the fiberglass is structurally sound for new screws and you should re-bed the frame which generally means it has to come off to apply sealant.