The death of a teenager has prompted a coroner to warn about the risks of violent and sexualised online material.