“You’re” is the abbreviation of “you are” e.g. You’re a student.
While, “your” is a word that shows ownership e.g. Is this your pen?
To work out which word to use, trying replacing “You are” in the sentence. If it doesn’t make sense it means you should probably use the word “your”.
For example in the sentence “Your cat is in my garden” it doesn’t make sense if you replace “Your” with “You are” (i.e. You are cat is in my garden.)