The extent of a court’s authority to impose remedies is limited by the specific constitutional violation that has been identified. Remedies must be directly targeted to correcting the harm caused by the violation and not extend beyond what is necessary to rectify the issue at hand.
For example: If a court finds that a local ordinance discriminates based on race, the remedy should aim to eliminate the discriminatory effect of that ordinance rather than overhauling the entire municipal code, which may include provisions unrelated to the constitutional issue.