I heard that a person is not a muslim when they are coming zina.
I also heard that the zina of the eyes is looking.

So are these related?
Like if you look at a non-mahram women are you not a muslim at that time?
Or does that Zina refer to adultery and not minor zina?

What about a cartoon of a female, or a relative? Would you not be a muslim when looking at them too or do they not count?