According to this video despite the claimed 32t cog max, the RD-4700-GS can handle a 10 speed 11-36 without any extra tricks or issues. So you can just get get on of these.
Alternatively, because ST-4700 have the same pull ratio as Shimano 11 speed road groups, you can also use any 11 speed rear derailleur that can handle 11-36, like RD-5800-GS or ST-R8000-GS. Of course none of these are rated as 11-36 compatible, but still work. For example, here's a video of RD-8000-GS working with 11-40 cassette.
If you feel weirdwant, you can even get an 11 speed Shimano MTB rear derailleur and Wolftooth Tanpan which, converts the pull ratio between two systems. JTek Shiftmate can probably do this too.