Is carburation or gas injection?
If it is carburation, it is most likely that the carburetor is dirty and the passage of gasoline for idle is too scarce, despite the fact that it is cold, it starts well because cold enters the starter mechanism that increases the dosage in a remarkable way.
If it is injection, you may have any improper air intake to the admission multiple, so that the street enters without the switchboard \ "knows \" in that way injecting less gasoline than normal and ends up stopping.