Some things i do in my DD's which i find to be helping out in cv games.
1) i still go for the cap as usual and disable my anti-air when i see enemy cv planes near my location. I only activate it when i am detected regardless.
2) If you are pushing on a flank, go to the outsides, try to see what "direct"lines the enemy cv needs to fly to get to your closest ally. Then avoid those fly lines.
But yeah, every few games, cv will make your dd live hell. It is good to switch to other ship types if it happens to regularly.