The quickest way to fix a cat's constipation
For constipation, you can take your cat to a veterinary hospital and use an enema under the guidance of a veterinarian to promote bowel movements. You can also change their diet to prevent constipation by feeding them a nutritionally balanced cat food, along with probiotics and digestive enzymes to promote intestinal digestion and absorption. Finally, you can use hairball remedy to help expel hairballs, as hairballs can also cause constipation. 
1. Glycerin suppository
If your cat is constipated, the quickest solution is to take it to a veterinary hospital immediately. Under the veterinarian's guidance, you can use an enema or antidiarrheal medication. Enemas should only be used in the most urgent situations and should not be used frequently, otherwise the cat may develop a dependency on them.
2. Change your diet
To fundamentally resolve constipation in cats, it's necessary to adjust their diet. Owners should avoid feeding their cats a single type of hard food for extended periods. Instead, they can feed them a nutritionally balanced, high-quality diet, supplemented with small amounts of probiotics and pet-specific digestive enzymes to promote intestinal digestion and absorption.
3. Hairball remedy
If a cat has too many hairballs in its body, it will often experience constipation, and there will often be a small amount of hair in its feces. If this is noticed, you can give the cat a small amount of hairball remedy to relieve the problem. If the situation is more serious, you should take the cat to a veterinary hospital immediately for surgical removal of the hairballs.