What to replace on my lid switch into the little plastic thing

How do I know what to replace on my lid switch into the little plastic thing or the black battery goes in it

My lid switch clicks but it's loose so I replace the plastic part on my lid switch for my Maytag washing top loading washing machine

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0

crwdns2942205:01crwdne2942205:0:

Hi @deloistincher,

What is the model number of your washer?

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

crwdns2934285:0crwdne2934285:0