Problems with stationary gas

For a few months there has been a problem with the standing gas of my Escort. I have a 1.4 to 74 hp BJ 1994. It is very different. After starting the engine there are actually never any problems, but from time to time it happens when you go into idle that the speeds change between approx. 900 and 400 and in the worst case the car runs out. Usually it is enough if the car stands a few times to press on ́s gas and then to lie again permanently at approx. 1000 revolutions. After a certain time, the speed starts to jump at a distance of approx. 2 seconds. As if you would always step on the gas. Jumps then always from 800 to 1000, then again to 800 then again to 1000 and always in approx. 2 – 1 second distance. As said, during normal driving there are no problems, even in the range of approx. 1500 revolution no difficulties, only sometimes in idle, but sometimes there are also no problems at all. What do you think? I don’t know any advice. Hope you can help me!!