This works great unless the onshore enemy has anti-ship missiles and drones.[2] Unlike fleet carriers, which can stand off from an enemy shore, amphibious assault ships have to operate in sight of shore, maybe a few kilometers, because their job is to launch boats. That's within small drone range.
[1] https://en.wikipedia.org/wiki/Wasp-class_amphibious_assault_...
[2] https://www.usmcu.edu/Outreach/Marine-Corps-University-Press...
Also, anti ship missiles and drones aren’t a cheat code. They can be suppressed, jammed, destroyed with preparatory fires, or shot down in flight. Anti-ship missiles aren’t new, nor are anti-anti-ship-missile-missiles. Anti-ship missiles were a major factor in the 1982 Falklands War but not, in the end, a decisive one.