Logical fallacy

No true Scotsman

A sweeping claim is rescued from a genuine counterexample by redefining membership after the fact. Someone who previously counted is declared not a real member simply because they fail to fit the claim.

A runner walking over a marathon finish line as the gate is moved aside

Examples

No real marathon runner walks. Ana walked a stretch of the marathon, so she is no real marathon runner.
Finishing a marathon still counts even with a stretch of walking. The speaker changes the membership rule to set aside contrary evidence.
All genuine volunteers enjoy every shift. Since Paulo dislikes his Friday shift, he was never a genuine volunteer.