Master profile for my TV Series episodes?

I’m wondering if there’s a way to get some sort of “master profile”. Basically, I like my TV episodes to be in x265 format, so I normally go for a 1080 265 episode, then, if that fails, would like it to grab a 720p x265 episode, failing that, a 720 WEB episode, and then probably down to 480p/WEBRIP for some older shows that are only available in that.

I’ve set up so many profiles and tags now lol, that I’ve just got overawed by it all so was wondering if there’s a way to set it that it just scales down, as applicable, and will more often than not, find an episode with a size that I like, sometimes I was getting full 1080 x264 episodes that were a few GB a time. I’m aware some shows will only be available in that, but, for the most part, I like to keep the episode sizes manageable, that’s another reason I prefer the x265 versions.

Anyway, are there any “idiot guides” out there that I could use to set something like this up?

Cheers.

https://trash-guides.info/Sonarr/