On 26 January 2022, Dzianis was detained for taking part in the post-election protests held in Minsk in 2020, and was held in a pre-trial detention center until the trial.
In April 2022, Dzianis was found guilty in a criminal case opened under the article "Organisation and preparation of actions that grossly violate public order, or active participation in them" for taking part in these protests, and was sentenced to restricted freedom with referral to an open-type correctional facility.
Dzianis later left Belarus.
In November 2024, an in absentia court hearing was held under special proceedings to consider a harsher type of punishment. The outcome of the hearing is unknown.

