MacBook pro 2017 touch bar model.. Horizontal Lines on screen
The LCD is failing, sounds like. You've essentially already proved this by taking a screenshot that does not display the issue you are seeing (the artifacts). This happened on my SO's 2013 MacBook Air. I believe it's a fairly common issue, sorry to say.