![](/static/253f0d9b/assets/icons/icon-96x96.png)
Given the way conservatives have already used the judiciary to do this to an extent at state levels, yes. They used the Judiciary to strip Democrat governors of power in Wisconsin and North Carolina while using the judiciary to grant Republican governors those removed powers and more. The current federal judiciary would not grant a Democrat president dictatorial powers, but would grant them to a Republican preaident.
The conservative court would just rule it wasn’t an official act and say he could be prosecuted for it. They have no qualms with contradicting themselves for whatever political goal they are seeking to achieve.