WASHINGTON — President Trump plans to use his State of the Union address on Tuesday night to outline a bipartisan and optimistic vision of the country, a senior administration official said on Friday.

It could be a difficult sell.

In the past few weeks, as he has tried to navigate his way out of a political standoff with Democrats, Mr. Trump has ramped up his anti-immigration messaging, stormed out of meetings with Democratic leaders and refused to accept any compromise that does not ultimately include funding for a border wall.

And while the White House said on Friday that the goal of the speech was to bring together a divided government and a divided nation, the official said immigration would emerge as the main theme.

Mr. Trump is also expected to make an appeal to his evangelical anti-abortion base by talking about the “fundamental importance and respect for human life,” the official said. And he will focus a large portion of his remarks on the importance of ending illegal immigration.