Select the layer on the Canvas that you’d like to lock.
Click the “Lock” icon on the right menu to lock the layer. A yellow border will appear around the layer to indicate that it is locked. Alternatively, you can lock layers from the Layers Panel as well by clicking the lock icon there.
Unlock a layer by once again clicking on the lock icon.