How can I get my toddler to poop on the potty?

My son just turned 3 and is nearly potty trained but how…HOW can I get him to not be afraid to poop in the toilet?? He literally said he had to go this morning went and sat on the toilet then when he said it was coming out he jumped off and started crying. I put him back on and he started screaming and shaking saying it was scary and asked for his diaper back on. He’s gone before just fine at least 4 times but just won’t do it anymore. He goes pee in the potty all the time.