Here an example and my random sexual historical fact for the day. In 1999, technology historian Rachel Maines HYPOTHESIZED that vibrator might have been invent to cure so called "female hysteria" (a fantasy "mental illness" mostly invented by men to control women sexuality). Holywood think it was a funny and sexy story even if it was just an hypothesis that was by the way widely debunked by others historians (like Hallie Lieberman who is considered the reference on history of sex toys). They adapt it.
In fact, vibrator was invented in 1880 by physician Joseph Mortimer Granville. Like it was often the case at the time, with lot of crooks selling snake oils around that they pretend have miraculous healing properties, it was supposed to cure almost any ailment, except... hysteria. It also wasn't supposed to be used around sex zones. Plus, vibrator was intent for men, every illustrations in his book show men.
Real history of how the vibrator become a bedroom favorite is a lot more feminist. In the 1970's, feminist activist Betty Dodson create Bodysex workshops which teach women about sex education. Dodson discovered that Magic Wand (one of those vibrators of the type invented by Granville) can be use to pleasure yourself and show other women how to do that, particularly women who have trouble reaching orgasms. In 1979, Journal of Consulting and Clinical Psychology conducted a scientific study about her method and prove it to be the most effective. In 2008, The Scientific World Journal did an experiment with 500 women who have trouble achieving orgasm, 93% of them managed to do it using this method and a vibrator. It's how vibrators became so popular for women, gender minorities and more and more for men too.