Yoga pain

So I recently started doing yoga at home with YouTube videos because I want to change my daily habits. I bought a yoga mat since I have hard floors, but my knees still hurt during and afterwards. Any suggestions on what I can change in order to feel less pain?