A display panel and an electronic device are provided. The electronic device includes a display panel. The display panel includes a display module, a housing, a first sensor, a first plane mirror, and a second plane mirror. Light from a via hole is reflected by the first plane mirror, is incident on the second plane mirror, and enters the camera opening of the first sensor after being reflected by the second plane mirror.