The success of a U.S. president's agenda is closely tied to the party controlling Congress, according to political strategists. If Democrats lose their congressional majorities in upcoming elections, President Biden's legislative goals and policy initiatives could face significant hurdles.

Political contributors Sonny Joy Nelson, a Republican strategist, and Cristina Tzintzún Ramirez, a Democratic strategist, discussed the potential ramifications for the president's agenda on ABC News.

Historically, a president's party holding sway in both the House of Representatives and the Senate is crucial for advancing legislation. Divided government, where different parties control the presidency and one or both houses of Congress, often leads to legislative gridlock and can force compromises that dilute a president's original proposals.

The specific impact would depend on the margin of control in each chamber and the willingness of lawmakers to negotiate. A narrow majority for the opposing party could still allow for some bipartisan cooperation on specific issues, while a significant Republican majority might signal a more challenging path forward for Biden's key policies.