Coloured line at top of Mac screen - only when watching video

Hi

i bought a refurbished Mac a few months ago and it has been great. Today I’ve noticed that there’s a coloured line at the top of my screen - this is only visible when I’m watching video like catch up tv or something online. Is this a hardware fault or can it be fixed by a reset?

I don’t know enough to test solutions so I’m hoping someone has dealt with this before!

crwdns2934089:0crwdne2934089:0 crwdns2934093:0crwdne2934093:0

crwdns2934109:0crwdne2934109:0

crwdns2889612:0crwdne2889612:0 0

crwdns2942205:01crwdne2942205:0:

Can you post a short movie focusing on this from your iPhone Adding images to an existing question

crwdns2934271:0crwdnd2934271:0crwdne2934271:0

crwdns2934285:0crwdne2934285:0