Screen starts flickering when in streaming
Your problem

If the problem appears on screenshots, then that would mean it's most likely a software problem. There can be a lot of reasons for this to occur and it's not possible to deduce from your story what causes it in this case.

Possible solution

I would advice you to reinstall macOS and see if that solves your problem.
Instructions