WASHINGTON >> President Donald Trump shopped for a new Tesla on the White House driveway on Tuesday, selecting a shiny red sedan to show his support for Elon Musk’s electric vehicle company as it faces blowback because of his work to advance the president’s political agenda and downsize the federal government.

“Wow,” Trump said as he eased his way into the drivers seat of a Model S. “That’s beautiful.”

Musk got in on the passenger side and joked about “giving the Secret Service a heart attack” as they talked about how to start a vehicle that can reach 60 miles per hour in a few seconds.

Trump told reporters that he would write a check for the car, which retails for roughly $80,000, and leave it at the White House so his staff can drive it. The president also said he hopes his purchase will boost Tesla, which is struggling with sagging sales and declining stock prices.

“It’s a great product,” he said. Referring to Musk, Trump said “we have to celebrate him.”

It was the latest — and most unusual — example of how Trump has demonstrated loyalty to Musk, who spent heavily on his comeback campaign last year and has been a key figure in his second administration. Tesla’s stock price increased nearly 4% on Tuesday after dropping almost 48% since Trump took office in Janurary.

The Republican president announced on social media overnight that he was going to buy a new Tesla as “a show of confidence and support for Elon Musk, a truly great American.”

Musk continues to run Tesla — as well as the social media platform X and the rocket manufacturer SpaceX — while also serving as Trump’s adviser.

“Elon Musk is ‘putting it on the line’ in order to help our Nation, and he is doing a FANTASTIC JOB!” Trump wrote. “But the Radical Left Lunatics, as they often do, are trying to illegally and collusively boycott Tesla, one of the World’s great automakers, and Elon’s ‘baby,’ in order to attack and do harm to Elon, and everything he stands for.”

Others have also rallied to Musk’s defense. Alex Jones, a prominent conspiracy theorist, said that he bought a customized version of a Cybertruck that he’ll give away to a customer of his online store next month.

In addition to Tesla’s struggles, Musk has faced other challenges too. He said X was targeted by a “massive cyberattack” that disrupted the social media platform on Monday, and the last two test launches of his Starship rocket ended in explosions.

Presidents almost never drive for security reasons. Joe Biden got behind the wheel of an electric truck while promoting domestic manufacturing, and Barack Obama took a spin with Jerry Seinfeld in the White House driveway for a comedy show.