That problem is generally/usually caused by a dirty IAC (idle air controller). The IAC is mounted to the passenger side of the throttle body and is responsible for providing all of the engine's air when at idle and the butterfly valve is closed (when your foot is not on the accelerator pedal).
The IAC gets dirty over time and when it does, it can't open smoothly enough so it won't provide engine air well enough for a smooth idle.
Held on by two small torx-head bolts, the IAC is easily removed and cleaned... there is usually no need to replace it. Buy an aerosol can of throttle body cleaner and with a rag and/or toothbrush, gently clean the IAC's solenoid actuated plunger which is what fits into the throttle body to control the amount of air that gets into the throttle body. Don't push/pull/twist/turn that plunger. Clean the oriface the plunger fits into too. Once the IAC is clean and reinstalled, use the rest of the throttle body cleaner to clean the inside of the throttle body per the instructions on the can.
Here's a diagram showing where it is. Notice that slot labled "Idle Air Control Passage Inlet"? That's where the TB gets its air through at idle as controlled by the IAC. Good luck and a big welcome to JF.