Go through your live plants and throw/ cut away anything that is mushy, dying plants will also add ammonia and the extra nutrients will promote a baterial bloom. if its an algae bloom ( green water) having some healthy aquaroum plants in there will clear it up after a fee days.
I have jar that gets direct sun for about 3 hours a day next to the window. When I first removed some plants it got cloudy, but after a week when the plants absorbed all the excess nutrients and translate that into growth, the water is now crystal clear. It remains that way regardless of how much I feed/ overfeed my fish.
If you have a test kit you can test the water to see what might be contributing to the cloudiness