If this is a fix, not a new installation, first remove the existing door trim.
With the prybar, gently remove the door trim from the door casing. Begin on the wall side and fit the flat end of the pry bar under the trim. Insert a towel or cloth under the prybar's fulcrum to protect the wall. Push down on the prybar. The trim should pop up, allowing you to remove it.