Protesters shouting "Honor her wish" heckled US President Donald Trump as he paid his respects on Thursday to Ruth Bader Ginsburg at the Supreme Court, invoking the liberal justice's deathbed plea not to be replaced until after the November election.

As Trump, wearing a black face mask, and First Lady Melania Trump stood solemnly behind Ginsburg's flag-draped casket on the steps of the court, protestors bellowed chants from the street below.

US President Donald Trump and First Lady Melania Trump pay their respects to the late justice Ruth Bader Ginsburg at the Supreme Court
US President Donald Trump and First Lady Melania Trump pay their respects to the late justice Ruth Bader Ginsburg at the Supreme Court AFP / ALEX EDELMAN

The president did not appear to acknowledge the protesters who could be heard shouting "Honor her wish!" and "Vote him out!"

Later at the White House, Trump told reporters that he and the first lady "could hardly hear it from where we were" -- but his spokeswoman condemned the heckling.

"The chants were appalling but certainly to be expected when you are in the heart of the swamp," Kayleigh McEnany told reporters. "I thought it was an appalling and disrespectful thing to do as the president honored justice Ginsburg."

US President Donald Trump paying his respects to the late US Supreme Court Justice Ruth Bader Ginsburg
US President Donald Trump paying his respects to the late US Supreme Court Justice Ruth Bader Ginsburg POOL / Alex Brandon

Trump is not accustomed to honoring political opponents, and his visit to the Supreme Court to pay his respects to Ginsburg is a rare tribute by the Republican president.

He also rarely wears a face mask in public and has frequently mocked his Democratic opponent Joe Biden for doing so.

Mourners paying their respects to Justice Ruth Bader Ginsburg
Mourners paying their respects to Justice Ruth Bader Ginsburg GETTY IMAGES / POOL

According to National Public Radio, Ginsburg, during her final days, told her granddaughter, Clara Spera, that her "most fervent wish is that I will not be replaced until a new president is installed."

Despite Ginsburg's plea and Democratic opposition, Trump is pushing ahead with plans to replace the feminist icon on the court ahead of the presidential election.

"I think it's going to go very, very quickly," he told Fox News Radio on Thursday.

IMAGES [COMPLETES VIDI8QM6LB_EN]US President Donald Trump is heckled by protesters as he and the First Lady Melania Trump visit the Supreme Court to pay their respects to the late Justice Ruth Bader Ginsburg.
IMAGES [COMPLETES VIDI8QM6LB_EN]US President Donald Trump is heckled by protesters as he and the First Lady Melania Trump visit the Supreme Court to pay their respects to the late Justice Ruth Bader Ginsburg. CBS / Anne LEBRETON

Trump has pledged to nominate a woman to fill Ginsburg's seat and the White House has been vetting candidates for confirmation by the Republican-controlled Senate.

"I have five women. I like them all," Trump said.

White House Press Secretary Kayleigh McEnany
White House Press Secretary Kayleigh McEnany is pictured. GETTY IMAGES / CHIP SOMODEVILLA

He plans to announce his nominee for the lifetime post on the nation's highest court at the White House at 5:00 pm (2100 GMT) on Saturday.

Ginsburg's death last week at the age of 87 could allow Trump to cement a conservative majority on the nine-member court for decades to come.

Democrats are demanding that the process of replacing Ginsburg wait until after the election, when it will be known whether Trump will serve a second term.

But Trump says the post must be filled, in case the election is contested and ends up before the high court -- a possibility that is raising tensions in Washington.

"I think this will end up in the Supreme Court. And I think it's important we have nine justices," the president said.

Republican senators insist they have the right to vote on the nomination either before the election or during the "lame-duck" session before the inauguration of the next president in January.

Two Republican senators have said they do not believe the vote should be held before the election.

But on Tuesday, Utah Senator Mitt Romney, who had been seen as a potential Republican holdout, said he will vote on the nominee "based upon their qualifications."

Although Democrats have no way of stopping the procedure, they will seek to inflict political pain on the Republicans over what Biden called an "abuse of power."

On Friday, Ginsburg, who spent 27 years on the court, will become the first woman to lie in state at the US Capitol.