There is an August 2022 poll from The Chicago Council on Global Affairs/Ipsos addressing exactly your question here.
A minority of Americans would support the use of force to destroy Iran’s nuclear facilities if it restarted development of a nuclear weapon: 46 percent would support air strikes and 38 percent would support the deployment of US troops.
It’s worth noting that this is a large amount of support in the post-2016 era of American foreign policy for US intervention, and digging into the poll one even finds that it’s concentrated on the right:
Republicans are about 15 to 20 percentage points more likely than Democrats or Independents
to support the US government launching cyberattacks or airstrikes against Iran. GOP supporters
are also significantly more likely than either group to support sending troops to destroy the
country’s nuclear facilities (+12 percentage points compared to Democrats, +18 percentage
points to Independents).
In a 2019, FiveThirtyEight noted that Americans are more in favor of using troops in Iran in case of them obtaining a nuclear weapon than in an any other case, including an invasion of a NATO ally or of Taiwan by China.
…a survey conducted in June found that the use of military force in Iran may be one military intervention that the U.S. public could get behind, especially if Americans perceive Iran’s nuclear capabilities as a threat. In that survey, which was released earlier this month by the Chicago Council on Global Affairs, 70 percent of respondents, including 82 percent of Republicans and 66 percent of Democrats, supported using U.S. troops to stop Iran from obtaining nuclear weapons.
In a 2012 poll, 53% - 56% of Americans supported such strikes.