In a sign that a presidential hopeful's sexual orientation has diminished as a concern for voters, Americans are more likely to say they would reject a candidate older than 70 than a candidate who is gay, according to a Reuters/Ipsos poll on Monday.

The national opinion poll, conducted with the Williams Institute at UCLA ahead of the 50th anniversary of the Stonewall Uprising and the birth of the LGBTQ rights movement, highlighted a steady trend toward acceptance of gay politicians.

The survey also called attention to one of the challenges facing President Donald Trump, who will be turning 73 next week, as he seeks re-election in 2020.

Democrats will select their nominee from a field that so far includes 24 candidates and a record number of women and non-white candidates. Among those running are two septuagenarians - former Vice President Joe Biden and U.S. Senator Bernie Sanders - as well as Pete Buttigieg, the openly gay mayor of South Bend, Indiana.

A decade ago "it was controversial just to see a presidential candidate who's supportive of gay rights," said Andrew Flores, a government professor at American University in Washington, D.C. "Now there's a gay candidate who's actually running for the office. So there has been a vast change in what the country views as acceptable."

Overall, the poll found that 48 percent of adults in the United States said they were "much" or "somewhat" less likely to support someone for the White House if the person was older than 70, while 34 percent were less likely to vote for someone who is gay.

And 12 percent said they were more likely to vote for a gay candidate, compared with 11 percent who said they were more likely to support a candidate who is over 70.

The poll measured the public's general acceptance of various demographics, rather than gauging support for individual presidential candidates.

"People might say in a poll that they want a younger candidate, but that may not be what will actually determine their vote," said Kyle Kondik, a political analyst at the University of Virginia's Center for Politics.

Stonewall's legacy

Acceptance of gay and lesbian politicians has grown over the past 40 years amid a worldwide movement for LGBTQ equality. Historians trace its genesis to the Stonewall uprising in June 1969, when gay people protested police harassment at a gay bar in New York's Greenwich Village .

Despite this trend, as of 2007, Americans were still more likely to want a septuagenarian in the White House than they were a gay or lesbian politician.

This year Reuters/Ipsos and other national polls including Gallup and Public Opinion Strategies showed that public preferences had flipped as Americans became much more supportive of gay candidates.

Events underpinning the shift included the 2010 repeal of the "don't ask, don't tell" rule that banned openly LGBTQ people from serving in the U.S. military and the 2015 U.S. Supreme Court decision in 2015 that same-sex marriage is a right guaranteed by the Constitution. Trump also has presented himself as an ally of the LGBTQ community.

Buttigieg may be part of the reason for the shift in acceptance, Flores said.

"It's now a reality that there's an out gay candidate, who's a Democrat, who may become president," he said. "You may see a greater level of legitimacy among Democratic voters because of that."

Democrats, who will decide whether to nominate Buttigieg at state voting contests in 2020, are clearly more supportive of gay presidential candidates than Republicans. According to the poll, 20 percent of Democrats said they were more likely to vote for a gay candidate, compared with 6 percent of Republicans.

A representative for Buttigieg said he was not available to comment.

When it came to their support for gay candidates, the poll also found that minorities were generally more supportive than whites. Millennials were more supportive than Baby Boomers, and people living in urban areas were more supportive than people living in rural communities.

The Reuters/Ipsos poll was conducted online on May 29 and June 5 in English throughout the United States. It gathered responses from 2,237 adults and has a credibility interval, a measure of precision, of two percentage points.

FOLLOW NBC OUT ON TWITTER, FACEBOOK & INSTAGRAM