The National Guard has been mobilized in the District and every city police officer will be on duty Tuesday and Wednesday to handle protests of the November presidential election, which Mayor Muriel E. Bowser said may include people looking to instigate violence.

Bowser (D) has asked D.C. residents to stay away from downtown Washington on both days while members of far-right groups, including the Proud Boys, amass to falsely claim President Trump was reelected.

Trump — who lost both the popular and electoral-college vote to President-elect Joe Biden — has continued to dispute the results, without evidence, and is encouraging his supporters to attend the rallies.

He has said he might appear at Wednesday’s demonstration at the Ellipse, just outside the White House, which is timed to coincide with Congress’s vote to certify the election results — a formality that this year will be a fraught and divisive process. The National Park Service on Monday night updated the crowd estimate on the permit for that event to 30,000 people, up from 5,000.

“People are allowed to come into our city to participate in First Amendment activities,” Bowser said Monday. “We will not allow people to incite violence, intimidate our residents, or cause destruction in our city.”

Pro-Trump protests in November and December, which included some of the same groups, ended violently, with multiple people stabbed and several churches vandalized, including two historically Black houses of worship.

This time, members of right-wing groups have taken to social media sites such as Parler and Telegram to discuss how to bring guns into the District despite laws banning open carry throughout the city and prohibiting guns on federal lands such as the Mall and Freedom Plaza or anywhere within 1,000 feet of a protest.

Bowser said that the National Guard members, who will not carry guns, will help enforce street closures and otherwise assist with crowd management so that D.C.’s police department can focus on law enforcement, including arresting anyone who is unlawfully armed.

Defense officials said the Pentagon approved the activation of more than 300 members of the District of Columbia National Guard, but limited the size and scope of the mission after a deployment during racial justice protests in June raised questions about whether the Trump administration was trying to use the military as a political club.

Two defense officials familiar with the plans, speaking on the condition of anonymity because of the sensitivity of the issue, said the guard members are not expected to use armored vehicles, including Humvees, relying instead on civilian vans owned by the government. The military also has not approved the use of its helicopters, which were deployed over protesters in June in an apparent show of force, prompting a military investigation whose results still have not been released.

No National Guard members from other states are expected to be called into D.C., the officials said — again, in contrast to June. And under the terms of a new defense spending bill, any federal troops must be identifiable, personally and by agency, a provision added to the law after federal agents deployed this summer did not reveal the agencies with which they were affiliated.

The smaller military presence comes as current and former defense officials warn against relying on the armed forces for election-related activities. The military, with its nonpartisan tradition, should not be dragged into politics, they have said.

On Sunday, all 10 living former defense secretaries combined to publish an op-ed in The Washington Post warning that the time has come to stop contesting presidential election results and that the military should have no role in overturning them.

The National Park Service began issuing permits Monday for the so-called Stop the Steal rallies, which are expected to begin Tuesday afternoon and continue through Wednesday.

Women for America First — a group behind a pro-Trump march in November and another on Dec. 12 that ended in a night of chaos on D.C. streets — is organizing the event on the southern half of the Ellipse on Wednesday morning. Potential speakers include longtime Trump ally Roger Stone, whose sentence for seeking to impede a congressional probe into Russian election interference was commuted by Trump in July before being upgraded to a full pardon, and Rudolph W. Giuliani, Trump’s personal attorney, who has waged a roundly unsuccessful legal fight to overturn the election results.

A new organization dubbed the Eighty Percent Coalition, a reference to the roughly three-quarters of Republicans who have said in polls they do not trust the results of the presidential election, received a permit for a Tuesday rally at Freedom Plaza that the Park Service estimated would draw 5,000 people. That event is scheduled to begin at 1 p.m. and continue until 8:30 p.m. Groups questioning the election outcome will also hold protests Wednesday at Freedom Plaza, on the Mall and outside the Capitol.

Though no organized march between the Wednesday rallies has been planned, organizers said they expect a large number of attendees to make their way from the Ellipse to the Capitol at the conclusion of the morning event.

Pro-Trump protesters have also frequently visited the stretch of 16th Street NW near the White House that Bowser renamed Black Lives Matter Plaza during the summer demonstrations, tearing down signs demanding racial justice and honoring Black leaders and victims of violence.

Acting D.C. police chief Robert J. Contee III said Monday that police might close off the plaza to all pedestrians if conditions warrant. Bowser said she would consider imposing a curfew if needed, as she did during the protests in June.

The organization Black Lives Matter DC put out a statement Monday asking Bowser to go further than she has so far in her denunciation of far-right demonstrators. The groups asked D.C. businesses to not do business with “white supremacists and hate groups who incite violence”; D.C. officials to do more to enforce mask and social distancing rules among rallygoers; and D.C. lawmakers to do more to “protect our sacred Black spaces.”

“The authorities have no problem keeping the White House — and the white man inside — safe; Black people expect and demand no less for our sacred Black spaces, including Black churches and Black Lives Matter Plaza,” the group wrote.

Bowser said Monday that police would focus on enforcing gun laws and addressing any potential violence, and — just like at past demonstrations — would not prioritize arresting or fining people for violating the city’s masking and social distancing requirements.