Welcome to the forum @jonmark79.
Once the lock screw is loose, I give the doorbell a firm but controlled “rap/hit” with the palm of my hand at the bottom of the Doorbell holding the top with my other hand so it does not fall.
It does take a little force to disengage.