If I wanted to say "We found ourselves in traffic while driving to the airport," I would say Ci siamo trovati nel traffico mentre guidando all'aeroporto.
Google Translate seems to understand guidando as "driving" but when I enter "while driving", I get mentre si guida.
So how would a native speaker say that sentence? What is the difference between the two options and when should I use one or the other?