I think it is fine, you are not given the DC until you commit to rolling it. Plus, I feel like without it there is no point in actually animating the dice roll - it can just be done under the hood and you either fail or pass.

Might also not be clear to non DnD players what actually happened, which may be misleading.

Furthermore, as a player I tend to get more hints from the DM on how hard the DC was. Either through the way they describe the outcome or just by knowing how they as a person play.

That is harder to tell when dealing with a video game.