Chosen Solution
When I want to use my back camera it’s glitchy and you can only see a purple glitchy background
Sounds like a defective camera. Take it to an apple store to see if they will repair it for free. If not, you can buy one from Ebay and follow the iFixit Teardown guide to replace it. iPhone 6 Teardown