As dozens of angry protesters began hurling bottles and rocks at police during chaotic scenes outside Kalgoorlie Magistrates Court on Tuesday, one young woman bravely shielded police in an attempt to stop the violence.

Standing with her arms up, beside her mother, shielding police, 18-year-old Hayley Garlett's incredible act of courage was captured on film - becoming a defining shot from an otherwise ugly riotous scene.

Thousands have shared the stunning shot, praising her selfless act in a time of turmoil.

Ms Garlett was at the court house to support what she thought was a peaceful protest, in reaction to the death of her cousin, 14-year-old Elijah Doughty, who was killed on Monday morning, allegedly run over while driving a stolen scooter.