Hello Joseph,
Can you post a screenshot showing the problem because I don't understand.
If it only happen in a particular course, then it must be something related to this course.
By your description it seems to be broken HTML.
I don't think it is a problem in the lesson code.