Use a short TTL on the CDN subdomain you use. Then setup an alternative CDN provider in advance, so that you can switch from one to the other in a matter of minutes.
[1] https://twitter.com/RichardTowers/status/1402312111078903812
[2] https://twitter.com/RichardTowers/status/1402312308077076484