WASHINGTON -- U.S. President Joe Biden is set to make a rare trip to the US-Mexico border on Thursday, setting up a split screen with 2024 rival former president Donald Trump, who has made Biden鈥檚 handling of illegal immigration a centerpiece of his reelection effort.

Trump is expected to give remarks at Eagle Pass, Tex. on Thursday, according to a source familiar with his plans.

During his visit, Biden is expected to meet with U.S. Border Patrol agents, law enforcement and local leaders in Brownsville, Tex. to discuss the need for a border agreement, according to a White House official. Brownsville and Eagle Pass are about 300 miles apart.

Biden鈥檚 visit comes as he considers sweeping executive action to restrict migrants鈥 ability to seek asylum at the U.S. southern border if they crossed illegally. Biden has repeatedly lambasted congressional Republicans for failing to pass a bipartisan compromise spending package that included significant concessions on border policy as he tries to flip the script on the GOP, which has slammed Biden over the border throughout his presidency 鈥 including impeaching his Homeland Security secretary over his handling of the border.

The failure of the package came in large part due to opposition from Trump, who hopes to wield the border as a political cudgel against Biden.

The New York Times was first to report on Biden鈥檚 visit.

White House officials reached out over the weekend to Texas lawmakers and officials who oversee border towns ahead of Biden鈥檚 visit.

Rep. Jasmine Crockett told CNN the Texas congressional delegation is aware of the president鈥檚 trip to the border, but said there were no immediate plans for members to join Biden as lawmakers return to Capitol Hill this week to try to avert a government shutdown.

Since last month, a group of Texas mayors have repeatedly called on Biden to visit the southern border and have called on Congress to pass the national security supplemental package that would provide funding to address some of the concerns along the southern border.

White House officials have been having ongoing conversations with local Texas officials for several weeks about issues arising at the southern border.

Biden has previously visited the border once as president, traveling to El Paso, Tex., in January 2023, where he visited a migrant respite center but did not appear to see or meet with migrants.

In a statement responding to news of Biden鈥檚 planned visit, Trump鈥檚 campaign said Biden 鈥渉as had three years to visit the border and fix the crisis he created.鈥

鈥淣ow Biden鈥檚 handlers are sending him there on the same day as President Trump鈥檚 publicly reported trip, not because they actually want to solve the problem, but because they know Biden is losing terribly,鈥 Trump campaign spokesperson Karoline Leavitt said.

Trump repeatedly made border visits during his time as president 鈥 and since. During an event near the Texas-Mexico border in November, Trump escalated his anti-immigration rhetoric and received the endorsement of Texas Gov. Greg Abbott, who has taken his own steps to undermine Biden鈥檚 authority on border policy.

Trump, who has said that undocumented immigrants are 鈥減oisoning the blood鈥 of the United States, has vowed to conduct the 鈥渓argest domestic deportation operation in American history鈥 if he wins the White House in November.

He鈥檚 planning for a widespread expansion of his administration鈥檚 immigration policies that would restrict both legal and illegal immigration. The plans include rounding up undocumented immigrations and placing them in detention camps to await deportation.

Biden鈥檚 campaign called Trump鈥檚 proposed policies 鈥渦n-American,鈥 鈥渋nhumane鈥 and 鈥渄raconian.鈥

But the executive actions Biden is considering have drawn some comparisons to controversial measures Trump took while in office. Hoping to spur passage of the failed immigration bill, Biden said earlier this month he would be open to the idea of shutting down the border.

The Biden administration has taken other steps to try to tighten asylum at the U.S.-Mexico border. Last year, the administration released a regulation that largely barred migrants who traveled through other countries on their way to the U.S. southern border from applying for asylum in the United States 鈥 marking a departure from decades-long protocol.

CNN鈥檚 Kate Sullivan and Camila DeChalus contributed to this report.

This story has been updated with additional reporting.