constipation is usually temporary and related to diet, and would resolve with a simple laxative.
If this is note the case, you need to see your doctor.
If it is new constipation, it is time for a doctors visit.
If you are 50 or older, and this is a new symptom, it is time for your screening colonoscopy.
If you are on medications, your doctor needs to see if any of them are contributing.
If your diet is lacking in soluble fiber, and if you do not drink enough water, this needs to be changes.
I am a double board certified US doctor, DR Thomas. You can reply to me now.
Please click a positive rating at the tip of this answer page [we are paid per rating on our specific answer pages].
You can find me by request in medical, any day of the week.