Some Philadelphia police officers say they were barred from patrolling in uniform on the floor of the convention while it was in session — spurring claims that Democrats are anti-law enforcement.

Rudy Giuliani on Thursday first raised the issue of uniformed cops not being allowed to mingle with delegates on the floor.

“Philadelphia police officers are not in the convention hall. They’re not allowed in uniform,” said Giuliani, a Donald Trump adviser who was monitoring the Democratic convention.

“I would say it’s because the Democratic Party delegates are anti-police, anti-law enforcement. They hate the police. Republicans are not embarrassed by police officers,” Giuliani said.

The Post interviewed three police officers who confirmed they were ordered to steer clear of the convention floor during the proceedings while wearing their uniforms.

The Philadelphia Police Department said officers “have worked in conjunction with the Secret Service throughout this event, which includes the interior portion of the venue as well as the exterior portion.”