Hi kerwynjones2,
This is a common problem for a lot of people! Make sure your hand is in the correct position and that your third finger is standing up straight from the fretboard.
As you may already know, here's a great lesson on the D chord: https://www.guitartricks.com/lesson.php?input=22947&s_id=1867
If you have any questions, comments, or concerns, please contact us.