Switch to the numbers or symbols keyboard, then press and hold zero to find the degree sign. Most keyboards, including popular ones like Gboard, work this way.