When any person is indicted for an offense and acquitted on the ground of having an intellectual disability, the jury rendering the verdict shall state in the verdict that ground and whether the accused constitutes a danger to life or property and to the peace and safety of the community. If the jury certifies that the person with an intellectual disability is dangerous to the peace and safety of the community or to himself, the court shall immediately give notice of the case to the chancellor or the clerk of the chancery court, whose duty it shall be to proceed with the person according to the law provided in the case of persons with an intellectual disability, the person with an intellectual disability himself being remanded to custody to await the action of the chancery court.