That's a parent issue, the same as if their kid has a secret stash of cocaine or enjoys dancing in traffic.
No technical measure can fix stupid.
That's not parents issue. That's why we go after people who sell or give drugs to kids. Is a serious offense, we don't wave our hands and say its parents problem and not drugging kids is a popular policy unlike drug enforcement for adults.
No obviously we can just require that drug dealers make sure they distribute cocaine in packets that only open for adults.