Donald Trump has wrongly claimed Americans need photo identification to buy groceries, prompting a slew of accusations he is out of touch with the lives of ordinary people.

The US president made the remarks in a freewheeling speech at a Florida rally, during which he defended his trade policy and accused Democrats of obstructing his agenda.

Mr Trump was railing against the idea of non-US citizens voting and advocating stricter voting laws when he said IDs were required for everything else, including food shopping.

“Only American citizens should vote in American elections, which is why the time has come for voter ID, like everything else,” he said at the event at the Florida State Fairgrounds in Tampa.

“If you go out and you want to buy groceries, you need a picture on a card, you need ID. You go out and you want to buy anything, you need ID and you need your picture.”

Photo IDs are not needed to by groceries in shops and supermarkets in the United States, although they are required for purchases such as alcohol, cigarettes or some medicines.

“Where on earth does @realDonaldTrump buy groceries?! (Just kidding, we all know he doesn’t buy groceries),” said Boston City councillor Matt O’Malley on Twitter.

“Wow, never been shopping I guess, unless he is now planning extreme grocery vetting,” actor and screenwriter Kathy Gori said.

Referring to the US president’s discontinued meat brand, Comedian Adam Heath Avitable said: ”I hate having to show photo ID, provide a blood sample, and pee into a cup before I can buy my Trump steaks at the grocery store.”

A White House spokesman did not immediately respond to questions about when the billionaire president last bought groceries or anything else himself.

During a raucous rally aimed at boosting support for two Florida Republicans before the state’s primary, Mr Trump also defended his trade policy amid rising tensions with China.

He accused the country of having “targeted our farmers”, saying it was “not good, not nice”.

“You know what our farmers are saying? ‘It’s OK, we can take it,” he added.

Mr Trump’s administration last week announced plans for $12bn (£9bn) in temporary aid to help farmers deal with retaliatory tariffs from trading partners in response to new US policies.

At the Florida rally the US president backed Republican Ron DeSantis in a competitive primary for governor and backed the Senate campaign of his longtime ally, Governor Rick Scott.

“We have to make sure Rick Scott wins and wins big,” Mr Trump told the crowd. “It’s time to vote Bill Nelson out of office.”

Trump in Helsinki: Putin meeting and protests Show all 16 1 /16 Trump in Helsinki: Putin meeting and protests Trump in Helsinki: Putin meeting and protests President Trump meets with Russian President Vladimir Putin in Helsinki Reuters Trump in Helsinki: Putin meeting and protests An advert from Finnish newspaper Helsingin Sanomat is on display in Helsinki Reuters Trump in Helsinki: Putin meeting and protests President Trump in a meeting with Finnish President Sauli Niinisto AFP/Getty Trump in Helsinki: Putin meeting and protests President Trump meets with Finnish President Sauli Niinisto in Helsinki EPA Trump in Helsinki: Putin meeting and protests President Trump talks with Finnish President Sauli Niinisto in Mantyniemi, the official residence of the Finnish President EPA Trump in Helsinki: Putin meeting and protests US, Finnish and Russian flags fly in front of the Presidential Palace in Helsinki EPA Trump in Helsinki: Putin meeting and protests A protester wears a mask featuring a portrait of Russian President Vladimir Putin during the so-called "Helsinki against Trump and Putin" demonstration on July 16, 2018, in the Finnish capital Helsinki. The US and Russian leaders opened an historic summit in Helsinki on Monday, with Donald Trump promising an "extraordinary relationship" and Vladimir Putin saying it was high time to thrash out disputes around the world. / AFP PHOTO / Jonathan NACKSTRANDJONATHAN NACKSTRAND/AFP/Getty Images JONATHAN NACKSTRAND AFP/Getty Trump in Helsinki: Putin meeting and protests Vladimir Putin gifts a football to President Trump at the press conference that followed their meeting AP Trump in Helsinki: Putin meeting and protests Trump supporters hold banners during a demonstration in Helsinki AFP/Getty Trump in Helsinki: Putin meeting and protests People protest for women's reproductive rights in Helsinki's Senate Square Reuters Trump in Helsinki: Putin meeting and protests A crowd watches the motorcade transporting President Trump through Helsinki AFP/Getty Trump in Helsinki: Putin meeting and protests Russian President Putin drives through Helsinki on his way to meet with President Trump EPA Trump in Helsinki: Putin meeting and protests A man in the audience of the joint press conference holds up a sign sign that reads "NUCLEAR WEAPON BAN TREATY". REUTERS Trump in Helsinki: Putin meeting and protests A man is removed from the joint press conference in Helsinki. Security removed the man after he pulled out a sign that read "NUCLEAR WEAPON BAN TREATY". REUTERS Trump in Helsinki: Putin meeting and protests President Trump and Russia's President Putin sit for a working lunch in Finland's Presidential Palace AFP/Getty Trump in Helsinki: Putin meeting and protests President Trump meets with Russian President Vladimir Putin in Helsinki Reuters

Mr Trump, who is seeking Judge Brett Kavanaugh’s confirmation to the Supreme Court in the fall, made the case voters need to elect more Republicans, pointing to Democratic opposition to his pick.

Democrats “don’t want to give Trump any victory,” he said. “They will do anything they can to not help the Trump agenda.”