How? The IAF is nowhere near as capable in sustaining air operations and having air supremacy over Iran airspace unlike the US. IAF was able to penetrate Iran airspace at will bombing whatever targets but they had no staying capability yet if you remember IAF was able to degrade IRGC missile capability that by the end of the war they were launching around a dozen a day. USAF and USN once over Iranian airspace they are going to stay making it very difficult for the missile launchers that survived the first 48 hours of the air campaign under heavy EW to coordinate any missile launch. It is going to be total electronic blackout over Iran a capability the IDF didn't have.
Israeli attack on Iran had the factor of being surprised. IAF did not bring in fighter jets, instead, they used drones and standoff weapons such as air launched ballistic missiles.
It was a sudden attack assisted by internal saboteurs inside Iran. Almost 90% of damage was done by small drones that hit radars, missile launchers and other critical assets.
USN's ACs are not a major threat, main problem is fixed bases in countries around Iran such as Iraq, Qatar, Turkey, KSA and Jordan specially.
ACs are the most vulnerable assets of USN and USN won't benefit from advantages of surprise attack.
Everything depends on Iran's A2/AD capability and the denial range. The forward base ships will be deployed to entrance of Indian ocean armed with anti ship ballistic missiles, fast attack boats, cruise missile launchers, drones and air defense systems plus the anti submarine small boats. They will be protected by IRGCN's Soleimani class frigates armed with airdefense systems.
Before even reaching Arabian sea, ballistic missiles will rain over American carrier groups from forward base ships.
Nearly 4-6 Fateh class submarines will monitor the entrance and deny USN with its long range Tomahawk CMs.
USN cannot be kept outside Persian Gulf for too long but before the first line of defense breaks apart, IRGCN and IRIN will be prepared to bomb infiltrating assets of USN.
If the war takes place, it will not be a short time engagement. Until death of each and every American soldiers within the range of Iranian missiles, the war will continue.
Easiest and most effective target is US forces deployed to Kuwait. Expect thousands of KIA in that country.
Main targets and most important ones are Israel, Jordan, Kuwait and Qatar. Others are negligible.