Hello iphonescreenflickering,
We understand your phone screen is flickering and you have blocks of the color on the screen as well. We're happy to help!
In order to isolate and fix this issue, you will need to restore your iPhone.
Before you attempt any restore, We recommend you save and back up your iPhone’s data. Steps on how to back up an iPhone can be found here: How to back up your iPhone, iPad, and iPod touch
Once the backup has been completed, you can restore your iPhone. Steps on how to restore an iPhone can be found here: Restore your iPhone, iPad, or iPod to factory settings
Once that's done, we'd recommend setting your iPhone up as new, and testing it out before restoring from a backup. Check out this article for those steps: Restore your iPhone, iPad, or iPod touch from a backup
Let us know if that resolves this issue for you.
Thanks for using the Apple Support Communities.
Take care.