Cracked glass

I have same problem. My retailer is sending me a replacement unit so I have two questions.

Will I have any problem taking off the old doorbell and replacing with the new one if i am leaving all other components in place?

Secondly. Can i put a cover or a case over the glass to Protect this from happening again? I have a south facing door and it’s in direct sunlight all afternoon.