Diagnosis typically involves a combination of visual examination and biopsy. Dermatologists may use tools like a dermatoscope to examine suspicious lesions closely. If a lesion appears suspicious, a biopsy is performed to obtain a sample for microscopic examination. A pathologist then confirms whether the cells are cancerous and identifies the stage.