It will probably have facilities for identifying that condition and either self-cleaning or notifying the central dispatch system that it needs to be taken out of the rotation until cleaned.
Pretty much the same thing as a human-driven cab.
Worst case, all those things fail, and a dirty cab shows up, and you reject it on the hailing app with an explanation of why, leading to some delay till you get the next available cab. Its not like unexpected failures and delays don't happen with personally owned and operated owner-driven vehicles.