WASHINGTON — Hillary Clinton, in her first speech since the Orlando terror massacre, didn’t say Donald Trump’s name, but her goal was clear: to look compassionate yet resolute in the face of bigoted terror — and far more presidential than the boisterous billionaire.

Complete coverage: Orlando terror rampage

“The Orlando terrorist may be dead, but the virus that poisoned his mind remains very much alive,” Clinton said in a speech yesterday in Cleveland. “And we must attack it with clear eyes, steady hands, unwavering determination and pride in our country and our values.”

Clinton clearly sought to distinguish herself from Trump by reiterating her approach to counterterrorism, which focuses on dismantling terror networks that “move money and propaganda and arms,” as well as boosting intelligence capabilities at home, giving greater support to law enforcement and tackling online recruitment of would-be domestic jihadis.

But the subtext of her speech was to prove that she is the adult in the room when it comes to facing threats like terror attacks and hate crimes — and highlight everything that is wrong with Trump’s message.

“As I look at American history, I see that this has always been a country of we, not me,” Clinton said, one day after Trump congratulated himself on Twitter for “being right on radical Islamic terrorism.”

“We stand together because we are stronger together,” Clinton said.

The former secretary of state spoke before Trump’s speech at Saint Anselm College in New Hampshire, where the use of a teleprompter didn’t prevent him from saying incorrectly that the Queens, N.Y.-born Orlando attacker was “born in Afghan,” while blasting Clinton for calling Muslims “peaceful and tolerant.”

Trump said Clinton’s immigration policies would “bring people in who reject our values,” even as he claimed that under his presidency, “America will be a tolerant and open society.”

Clinton appeared to anticipate his attacks.

“We should be intensifying contacts in (Muslim) communities, not scapegoating or isolating them,” she said.

She also invoked President George W. Bush’s words after the Sept. 11, 2001, attacks to contrast with Trump’s trademark divide-and-conquer approach.

“President Bush went to a Muslim community center just six days after the attacks to send a message of unity and solidarity,” Clinton said. “To anyone who wanted to take out their anger on our Muslim neighbors and fellow citizens, he said: ‘That should not and that will not stand in America.’ It is time to get back to the spirit of those days.”