This question already has an answer here:
I have more media that can possibly be stored on my iPhone, so I assume that most of it is stored in iCloud and downloaded when required (when I view it).
What happens if I cancel/downgrade my iCloud storage plan?
How do they decide what media is going to be deleted, so that the amount falls within the free plan?
Is there a time period where I can cancel and then sign back up and it'll be as if nothing has happened?