Scolding her younger brother for snacking while hiding chocolate makes her hypocritical.
hypocritical
adjective · /ˌhɪpəˈkrɪtɪkəl/
Claiming beliefs, standards, or virtues that one does not actually practice.
Do not confuse "hypocritical" (preaching virtue while acting contrary) with "hypercritical" (excessively fault-finding or harshly judgmental).
Greek hypo- ("under, behind") + krinein ("to judge, decide, act a part") → hypokrisis ("acting on stage, playing a role") → pretending to be virtuous.