Have any past Presidents been gay?

J. Edgar Hoover was, reportedly, but he was head of FBI, not the President.

AOC suggests America may have already elected a gay president

So, what about AOC’s claim that the White House may already have had a gay man as commander in chief? As TMZ put it, "someone needs to check the White House closets!" ¶Let’s circle back one more time to Buttigieg, who said in a 2019 interview, "statistically it's almost certain" that America has had gay presidents, as The Advocate reported.

There is a long-standing Secret Service “Q” or “QAnon” culture with unfettered access to the White House and nuclear secrets. The existence of that culture suggests past Presidents have indeed been gay. Buttigieg does not name names but many others from all over the political spectrum do.

Barack Obama: America’s First Gay President?

Who was President during World War II when Alan Turing was cracking German codes with a device given the effeminate name of “the Bombe?” Moreover the actual bombs dropped on Japan had “gay” nicknames of “Fat Man” and “Little Boy.”

Adolf Hitler and the Nazis obviously were waging war on gays as well as Jews. It should not be surprising that some of them were fighting back, but the Allies in the First World war weren't really fighting to defend gays or Jews. That wasn't until the Second World War.

The wild saga of FDR’s $1 million gay military sex sting

Franklin Delano Roosevelt — before he served as 32nd president of the United States — in 1919 approved a secret operation to rid the U.S. Navy in Newport, Rhode Island, of “cocksuckers and rectum receivers.” Their method? Volunteer agents would have gay sex and then tell on the sailors they had sex with for being gay.
24 Very Gay Excerpts from Eleanor Roosevelt’s Love Letters with Lorena Hickok
“Most clearly I remember your eyes with a kind of teasing smile in them, and the feeling of that soft spot just northeast of the corner of your mouth against my lips.”

Was William Howard Taft gay? The rumors of his intimate relationship to close friend and confidant Archibald Butt would make it appear so.

General Biography · Archibald Butt: Presidential Aide and Titanic Victim, 1865-1912, by James Gifford · OutHistory