Mom is toxic

My mom is very toxic shes almost like a brat. Very fiesty and always tries to fight and be right. Many ppl have compared me to my mom and i really dont want to be like her but i guess i cant help but act like her. My husband is just bringing me down so much telling me my attitude is going to be just like hers and im going to be ungrateful and stuff and i really Dont want to end up like her but its so hard not to be since ive been with her for 20 years and i guess followed her foot steps and almost done what shes done. Any advice?? Im just so lost i dont want to be like her but im her child so obviously im just like her