SAN FRANCISCO — Polls hadn’t even closed Tuesday in the United States when Irish budget airline Ryanair started trolling President Trump on Twitter.

“When your dad is enjoying his sun holiday too much and hits up the MAGAluf strip,” the airline tweeted along with a clip of Trump dancing at rallies.

The next day, as Trump falsely claimed he had won the election while votes were still being counted, the airline tweeted again. “Trump declaring victory this early is like disembarking before the plane has landed,” it tweeted. “We don’t recommend.”

Replies rolled in — mostly from customers seeking refunds during Britain’s lockdown.

Ryanair tried a humorous tone on a serious issue, something most companies wouldn’t even attempt during this stressful week.

And they really shouldn’t, said Paul Argenti, a professor of corporate communication at the Tuck School of Business at Dartmouth College. Speaking up about the election can lead to backlash or, at least, confusion, Argenti said.

“It doesn’t make any sense for anyone, unless maybe they make voting machines,” he said.

The Ryanair tweets — and a handful of other attempts by brands to market during election week — followed a flurry of marketing in weeks prior, as companies took to social media on the less-controversial topic of encouraging people to vote. Companies engaging in that messaging included delivery service Postmates in its app, dating app Bumble on profiles and outdoor-clothing company Patagonia on Twitter.

But this week, companies known for being outspoken on social issues, like Nike, have stayed silent on social media.

That’s in part because speaking out on political and social issues has been a mixed bag for many well-known brands. For example, many companies chose to publicly support the Black Lives Matter movement this summer, drawing a mixture of praise and rebukes for not doing enough.

Still, a smattering of smaller companies dipped their toes in the election current. Meditation app Calm offered stress-relief tips without directly mentioning the vote. Frozen steak-slice company Steak-umm reminded people to keep an eye out for misinformation.

Others were more outspoken. Ben and Jerry’s, which is known for its progressive views, tweeted, “We can’t believe an ice cream company has to say this... The President’s lies are a threat to our country.”

There are dangers in the attempts to weigh in. Gap was met with widespread ridicule Wednesday when it tweeted a GIF of a sweater, half blue and half red, being zipped up with the message, “The one thing we know, is that together, we can move forward.”

In a video using melted ice cream to illustrate the effects of temperature change, frozen treat manufacturer Ben & Jerry's urges viewers to "take action now." (Ben & Jerry's)

“This tweet needs to fall back into the gap,” one user tweeted as others piled on, calling out the company for drastically misreading the anxious feelings of people across the country.

(To make it worse, the “A” on the Gap sweater didn’t line up as it was being zipped.)

Gap confirmed that the sweater was not a real product but was created for the social media post. Gap corporate communications director Ana Serafin Smith said in a statement that the company remains hopeful that the country will come together.

“From the start we have been a brand that bridges the gap between individuals, cultures and generations,” she said. “The intention of our social media post, that featured a red and blue hoodie, was to show the power of unity. It was just too soon for this message.”

Meanwhile, Ryanair said it was waiting for a comeback from Trump as it works “night and day this week to come up with the most politically astute tweets for our followers.”

“As Europe’s largest airline, we know what it’s like to win the popular vote, and would be willing to fly the Trump family to Ryanair HQ to discuss our Twitter strategy further as it looks like they might have some free time on their hands in the near future,” the company’s head of social media, David Elkin, said in a statement.