According to the TSA, to carry sunscreen inside your cabin bags, it needs to be less than or equal to 100 ml/3.4 oz in volume. It is the same for any other liquid toiletries, such as perfumes and deodorant. This is known as the LAGs (Liquids, Aerosols and Gels) regulation, which was introduced by the TSA.