Herein, a portable smartphone-based photoelectrochemical immunoassay was innovatively designed for the on-site detection of breast cancer biomarkers (human epidermal growth factor receptor 2; HER2). The gene discussed is ERBB2; the disease is breast carcinoma.