The first thing to check for is an engine vacuum leak. A leak can cause a rough idle and even stalling. Here is a link showing how to do this:
If no leaks are found, you may want to consider servicing the idle air control valve (IAC). The IAC is responsible for maintaining idle speed under different conditions. There are times they are partially plugged, restricting air, or the IAC can fail.
The IAC is located on the throttle body. If you remove the air intake tube, it is positioned right below it. See pic 1 below.
Here is a link that explains how to service one:
Let me know what you find or if you have other questions.
See pic below. Also, I highlighted the IAC and have an arrow pointing to where it mounts. Make sure that area is clear of any dirt or carbon that can restrict airflow.
Thursday, March 24th, 2022 AT 8:22 PM