If mild - it can be gently reduced and pushed back in - use a moist washcloth.
Stool softeners may help prevent reoccurence. If it continues to prolapse - generally surgery is required to remove the redundant tissue and "tack" the rectum up. Colon
and rectal surgeons are probably the best at this type of problem.