State Rep. Ellen Troxclair cited mental health issues related to social media as her motivation for filing the bill.