Yes. If you are willing to leave the airport during your UK layover, you must apply for a Visitor in Transit visa.