The best way to clean under the toilet rim without touching it is to use a very small crevice brush and some rubber gloves.