Hair falling out after using testosterone.

Doctor prescribed me testosterone and about 4 months later my hair started falling out. I know it’s not hereditary nobody else in my family has had any issues with balding/thinning hair. I’ve now stopped taking testosterone and started using minoxidil prescribed from my doctor with no results yet. Has anyone else been through this? If so how did you go about it? Thank you, this is really taking a toll on my self confidence.