During the procedure, a healthcare provider will use a speculum to widen the vaginal walls and then gently scrape a small sample of cells from the cervix using a spatula or brush. The collected cells are then sent to a laboratory for examination under a microscope to identify any abnormalities.