In a modern open battle between evenly matched opponents, the carriers would all be on the bottom of the ocean by the end of the second day.
EDIT to add— found the article I was looking for, about the economics and battle realities of carriers:
"Soviet Adm. Sergei Gorchakov reportedly held the view that the U.S. had made a strategic miscalculation by relying on large and increasingly vulnerable aircraft carriers. The influential U.S. Adm. Hyman Rickover shared this view. In a 1982 congressional hearing, legislators asked him how long American carriers would survive in an actual war.
Rickover’s response? “Forty-eight hours,” he said."
Source: https://medium.com/war-is-boring/the-u-s-navys-big-mistake-b...
That’s what happened with the Tirpitz after the Bismarck was sunk. I think that situation is analogous because Bismarck’s demise was due to an attack with relatively cheap weapons (torpedo bombers) with a longer range than Bismarck’s guns, just as people predict modern air carriers don’t stand a chance against relatively cheap rockets because those rockets have a longer range than the airplanes on the carriers.