I think this is a general thing people are awkward about. And what to do when people sing you happy birthday. I've seen those posts a lot. So seems like a universal concern lol
I look at them. Look down. Look at them again. Lol, depends how far the distance is
I might wave and smile. Or do one of those Jim Halpert faces. Pretending like there's something to see on your phone is good too.