Let $\mathcal K$ be a $2$-category. A monad in $\mathcal K$ is an object $C$ together with a $1$-morphism $T \colon C \to C$ and $2$-morphisms $\eta \colon 1 \to T$ and $\mu \colon TT \to T$ as well as some commuting diagrams (see the nlab). Comonads can be similarly defined.
Similarly, adjunctions can be defined internally to any $2$-category. A right adjoint to a $1$-morphism $L \colon C \to D$ is a $1$-morphism $R \colon D \to C$ with a unit and counit making the usual diagrams commute (modulo coherence isomorphisms).
Given that a monad structure on $L$ yields a comonad structure on any right adjoint $R$, we can get all four possible dualizations by switching out $\mathcal K$ for its duals.
You can check that a monad structure on $T$ in $\mathcal K^{co}$ ($2$-morphisms are reversed) is the same as a comonad structure on $T$ in $\mathcal K$. This also dualizes adjoints: if $L \dashv R$ in $\mathcal K^{co}$ then $R \dashv L$ in $\mathcal K$.
Interestingly, switching to $\mathcal K^{op}$ only dualizes adjoints: if $L \dashv R$ in $\mathcal K^{op}$ ($1$-morphisms are reversed), then $R \dashv L$ in $\mathcal K$.
To dualize only monads, we can use $\mathcal K^{coop}$ (both kinds of arrows are reversed).
Some more details, as requested. Suppose we're given an ordinary comonad $L$ and $L$ has an ordinary right adjoint $R$. We'd like to conclude that $R$ is a monad by applying the theorem that given a monad $L$ and a right adjoint $R$, $R$ is a comonad.
More specifically, we're going to apply the general $2$-category version of that theorem. We need to start with a monad, but right now we have a comonad. To switch between them, we'll work with $\mathcal {Cat}^{co}$ instead. This means that we have a comonad now, but also switches the adjunctions, so that our comonad has a left adjoint. (Doing just this step is equivalent to switching out the category for its opposite, i.e. the trivial duality).
Thus, we need to dualize again in a way that unswaps adjoints, but leaves monads unchanged. Taking the $^{op}$ of the $2$-category accomplishes that, so now we're working in $\mathcal {Cat}^{coop}$.
To spell that out explicitly, if we're given an ordinary comonad $L$ and an ordinary right adjoint $R$, then this same data is equivalently a monad $L$ and a right adjoint $R$ in $\mathcal {Cat}^{coop}$. Then applying the general theorem, we get a comonad structure on $R$ in $\mathcal {Cat}^{coop}$, which translates back to a monad structure on $R$ in in $\mathcal {Cat}$, i.e., an ordinary monad.