I don’t think the media (in the uk) were that bad. It initially reported the truth that it was a virus mainly spread by promiscuous gay men (in the bath houses and saunas, etc, where there is no equivalent for women or heterosexual men), and people were frightened about the scope of it because it wasn’t clear exactly how it was transmitted (Could it be saliva? Coughing? Touching?). Princess Diana was famously photographed shaking the hand of a guy with AIDS in hospital which did a lot to dispel those uncertainties and fears. The media made sure that image was spread far and wide - nothing ignorant and bigoted about that.
It became evident that unprotected anal sex or sharing needles was the biggest risk factor (because semen and blood carried it and the vagina walls are better protected and vaginal fluids are not mobile). There was a huge government effort to misinform the public about this, to stop any backlash against gay men, which was pretty successful, to the point that people who were are very low risk of contracting the virus were going and getting tested and those at very high risk struggled to get tested.
It is really tiresome how people are trying to make out that the 80s were like a decade of Puritanism or something. The 70s through to the 80s were highly promiscuous, tolerant and liberal times, the AIDS virus was a massive slap in the face when it came - a wake up call. People can’t party hard and exchange bodily fluids with random people without risk. I think society is still reeling from the shock of that, so we are still more ‘puritanical’ now than people were in the late 60s to the late 80s.