A surgical instrument includes a housing, a shaft assembly, and a rotation locking mechanism. The shaft assembly extends distally from the housing and includes a shaft portion defining a longitudinal axis, and an end effector extending distally from the shaft portion, wherein the end effector and the shaft portion are axially rotatable relative to the housing about the longitudinal axis. The end effector includes a first jaw and a second jaw movable relative to the first jaw to transition the end effector between an open configuration and a closed configuration. The rotation locking mechanism is configured to prevent an axial rotation of the end effector and the shaft portion relative to the housing in the closed configuration. The rotation locking mechanism is configured to permit the axial rotation of the end effector and the shaft portion relative to the housing in the open configuration.