Every licensee shall have his driver's license in his immediate possession at all times when driving a motor vehicle and shall display the license upon demand of any judicial officer, municipal court judge, any officer or agent of the division or any police officer as defined in W.S. 31-5-102(a)(xxxiii). However, no person charged with violating this section shall be convicted if he produces in court a driver's license previously issued to him and valid at the time of his arrest. For the purposes of this section "display" of a physical license means the surrender of the physical license to the demanding officer. After examination the officer shall immediately return the license to the licensee except as provided in W.S. 31-5-1205(k). For purposes of this section "display" of a digital driver's license means that a licensee may provide access to the digital driver's license on the licensee's portable electronic device. No law enforcement or judicial officer demanding display of a licensee's digital driver's license for any licensing or identification verification purpose shall take custody of the licensee's portable electronic device. Display of a digital driver's license shall not serve as consent to search the driver's portable electronic device. Nothing in this section shall be construed to require a person, other than the department if it has chosen to issue a digital driver's license, to accept a digital driver's license or otherwise require the purchase of equipment to verify the accuracy of a digital driver's license.
W.S. 31-7-116