Julian Lopez appeals the denial of his petition for a writ of habeas corpus. In June 2000, Mr. Lopez was convicted in Wisconsin state court on one count of first-degree intentional homicide. After the state trial court denied Mr. Lopez’s first post-conviction motion and denied a supplemental motion, the Court of Appeals of Wisconsin affirmed Mr. Lopez’s conviction. The Supreme Court of Wisconsin denied his petition for review.
Mr. Lopez then filed a petition for a writ of habeas corpus in the United States District Court for the Eastern District of Wisconsin. The district court denied the *487 petition and also denied a certificate of appealability. We granted а certificate of appealability. We now hold that the Wisconsin appellate court applied a methodology based on an unreasonable reading of the decisions of the Supreme Court of the United States. As a result, the Wisconsin court improperly endorsed the trial court’s abnegation of its non-delegable responsibility to determine the appropriate security measures for a jury view of the crime scene and other various locations implicated in the case. Despite this error, however, the result reached by the Wisconsin court does not run afoul of any clearly established principle of federal law. In any event, any errоr was harmless. Accordingly, we affirm the denial of Mr. Lopez’s petition.
I
BACKGROUND
A.
In March 1999, Anthony Davis was shot and killed outside the Garden Fresh Foods building in Milwaukee. In September of that year, Mr. Lopez was charged with first-degree intentional homicide after three witnesses came forward to identify him as one of the men who shot Davis. His trial took place in June 2000. At a pre-trial hearing, the prosecution requested a “jury view” of the crime scene and several other locations. The court granted the request.
At another pre-trial hearing, the prosecution requested that the jury be sequestered. The prosecution represented to the court that the defendant was a member of a heavily armed drug organization, some members of which had not yet been federally indicted; that some of the organization’s weapons had not been recovered; and that there had been discussion within the organization about “taking action against witnesses.” R.50 at 6-7. The court ordered that the jury be sequestered.
At the beginning of the trial, the court informed the jury about the jury view. The court instructed the jurors that what they would see at the locations was not evidence and was not to be considered as such. Immediately after this instruction was given, the jury view took place. The judge accompanied the jury and the parties to five different locations, including the crime scene and Mr. Loрez’s house. On the way to the first location, the court instructed the jurors that the security they would see at these locations was “to preserve the scene, that this is not unnatural security that we go through,” and that they should “not draw any conclusions from that.” R.53 at 25.
Mr. Lopez was driven to the scene in a separate van, which was also occupied by four police SWAT team officers who were assigned to guard him. At two of the locations, Mr. Lopez remained in the van because he did not want the jury to see him surrounded by such a heavy security detail. At the other three locations, however, the court ordered Mr. Lopez out of the van. At these locations the jurors saw Mr. Lopez surrоunded by the four SWAT officers, who were dressed in military fatigues and carried “M-16 type” weapons. R.53 at 23. At one of the locations, an officer pointed his gun and shouted at a person who appeared in an open window. Police officers also were deployed on the rooftops of nearby buildings. Mr. Lopez and his counsel were not informed until the morning of the jury view that such intensive security precautions would be taken.
In court later that day, after the jury view, Mr. Lopez’s counsel objected to the level of security at the jury view and *488 moved to dismiss the case. He complained that the security arrangements had been worked out in ex parte discussions between the Sheriffs Department and the prosecution, based on information that was not shared with the defense. The prosecution did not deny that such communications took place, but responded that it had no control over decisions about security, as such decisions were the province of the Sheriffs Department alone.
The court admitted that it, too, was unaware of the planned security measures: “The Court wasn’t informed until just beforehand also that there potentially could be security — we went ahead and did it based upon the organization of the Department, which I believe it did a good job, so I’m not going to spend a lot of time on this.” R.53 at 28-29. The court denied the motion to dismiss, but again instructed the jury that it was “not supposed to draw any negative inference from the security that is out there.” R.53 at 30.
The trial continued, culminating in Mr. Lopez’s conviction on one count of first-degree intentional homicide. The court sentenced him to life in prison.
Mr. Lopez filed a motion in the trial court for post-conviction relief. He argued, among other things, that allowing the jury to see him under such heavy security at the jury view violated his right to a fair trial. The court denied the motion; it found that the security was appropriate under the circumstances. The court also noted that the jury was instructed repeatedly not to draw any negative inference from the level of security аt the jury view.
B.
Mr. Lopez appealed to the Court of Appeals of Wisconsin, which affirmed his conviction. The court reasoned that, although a trial court generally is required to state its reasons for requiring a defendant to wear restraints in the courtroom, “this standard ... is often relaxed in an out-of-court setting, depending on the circumstances.”
State v. Lopez,
No. 03-1886-CR,
The court also rejected Mr. Lopez’s argument that he should have been given advance notice of the planned precautions and an opportunity to provide input into the security decision. The court noted that the prosecution’s motion for a jury view was granted approximately three weeks before the trial began. The court also pointed out that Mr. Lopez was aware of the trial court’s heightened concern about sеcurity in the case because of the court’s decision to sequester the jury and by his attorney’s admission that he knew there would be “extra security” at the jury view. Id. Based on these considerations, the court concluded that “[Mr.] Lopez’s counsel had more than enough time to consult with Lopez about the implications of the viewing trip, and sufficient opportunity to consider the consequences of the potentially dangerous circumstances presented, and what security precautions may be taken.” Id. Accordingly, the court af *489 firmed Mr. Lopez’s conviction. He subsequently filed a petition for review with the Supreme Court of Wisconsin; that petition was denied.
C.
Mr. Lopez then petitioned for a writ of habeas corpus in the United States District Court for the Eastern District of Wisconsin. The district court denied the petition; it held that, although the security measures were “severe,” they were justified under the circumstances and did not unduly prejudice Mr. Lopez in the eyes of the jury.
Lopez v. Pollard,
No. 05-C-998,
We granted a certificate of appealability on the issue of “whether [Mr. Lopez] was denied his right to a fair trial as guaranteed by the Sixth and Fourteenth Amendments by the state’s use of excessive security measures during the jury view of the locatiоns relevant to the crime.” Lopez v. Thurmer, No. 07-3009 (7th Cir. Jan. 4, 2008) (unpublished order).
II
DISCUSSION
A.
Mr. Lopez seeks a writ of habeas corpus on the ground that the security measures during the jury view deprived him of a fair trial by making him appear dangerous— and, therefore, guilty — in the eyes of the jury. The Wisconsin state courts have considered and rejected this argument; it is, therefore, adequately preserved for federal review.
Under the standard of review set forth in the Antiterrorism and Effective Death Penalty Act of 1996 (“AEDPA”), in reviewing a state court’s decision on a federal constitutional issue, we may grant habeas relief only if the state’s adjudication of the issue:
(1) resulted in a decision that was contrary to, or involved an unreasonable applicatiоn of, clearly established Federal law, as determined by the Supreme Court of the United States; or
(2) resulted in a decision that was based on an unreasonable determination of the facts in light of the evidence presented in the State court proceeding.
28 U.S.C. § 2254(d). The relevant state court decision is that of the last state court to review the issue.
Gonzales v. Mize,
For purposes of habeas corpus review, “[c]learly established federal law” means “the governing principle or principles set forth by the Supreme Court at the time the state court renders its decision.”
Lockyer v. Andrade,
Mr. Lopez contends that three Supreme Court cases, taken together, establish the principle that a defendant has a “constitu
*490
tional right to appear in the garb of innocencе before the jury deciding his case.” Appellant’s Br. 17 (citing
Illinois v. Allen,
In
Illinois v. Allen,
In
Estelle v. Williams,
In
Holbrook v. Flynn,
Mr. Lopez reads Allen and Williams as establishing that it is inherently prejudicial to require a defendant to stand trial in shackles or prison clothing. He also points to the Court’s suggestion in Holbrook that “a roomful of uniformed and armed policemen” would prejudice a defendant’s right to a fair trial; he contends that the presence of uniformed SWAT officers carrying assault rifles created a similar risk of prejudice.
The State of Wisconsin, through Respondent Michael Thurmer (the “State”), responds that these cases do not add up to a clearly established principle barring the use of heightened security measures during a jury view. The State points out that these cases all involved security measures in the courtroom, and notes that “the Supreme Court has never addressed whether security measures outside the courtroom ... may have an effect on a defendant’s due process rights.” Appellee’s Br. 14.
B.
At the outset, we find the state trial court’s “hands-off’ approach to fashioning *491 the appropriate level of security at the jury view extremely troubling. As far as the record reveals, the trial court made no effort to scrutinize with any care the security measures in which the defendant would be seen at the jury view. By the court’s own admission, it did not even know what security measures the Sheriffs Department intended to employ until the morning of the jury view. In effect, the state trial court surrendered to the Sheriffs department its responsibility to decide the level of security that wаs reasonable during the trial. The court’s laissez-faire approach also deprived Mr. Lopez of a meaningful opportunity to argue, before the fact, that the planned security measures were excessive. As we have noted earlier, the Court of Appeals of Wisconsin explicitly sanctioned the trial court’s total abnegation of its responsibilities to law enforcement authorities.
Furthermore, we believe that the Court of Appeals of Wisconsin unreasonably interpreted the governing precedent of the Supreme Court of the United States. We read
Allen, Williams
and
Holbrook
as establishing the principle that
trial courts
have a constitutional responsibility to balance the need for heightened security during а criminal trial against the risk that the additional precautions will prejudice the defendant in the eyes of the jury. It is that judicial reconciliation of the competing interests of the person standing trial and of the state providing for the security of the community that, according to these cases, provides the appropriate guarantee of fundamental fairness. This was implicit in Justice Black’s opinion for the Court in
Allen,
and later was made explicit in Chief Justice Burger’s opinion for the Court in
Williams:
“In the administration of criminal justice,
courts
must carefully guard against dilution of the principle that guilt is to be established by probative evidence and beyond a reasonable doubt.”
Williams,
The actual impact of a particular practice on the judgment of jurors cannot always be fully determined. But this Court has left no doubt that the probability of deleterious effects on fundamental rights calls for close judicial scrutiny.... Courts must do the best they can to evaluate the likely effects of a particular procedure, based on reason, principle, and common human experience.
Id.
at 504,
Lower courts have disagreed about the specific procedural steps a trial court must take prior to shackling, about the amount and type of evidence needed to justify restraints, and about what forms of prejudice might warrant a new triаl, but they have not questioned the basic principle. They have emphasized the importance of preserving trial court discretion (reversing only in cases of clear abuse), but they have applied the limits on that discretion described in Holbrook, Allen, and the early English cases. In light of this precedent, and of a lower court consensus disapproving routine shackling dating back to the 19th century, it is clear that this Court’s prior statements gave voice to a principle deeply embedded in the law. We now conclude that those statements identify a basic element of the “due process of law” protected by the Federal Constitution. Thus, the Fifth and Fourteenth Amendments prohibit the use of physical restraints visible to the jury absent a trial court determination, in the exercise of its discretion, that they are justified by a state interest specific to a *492 particular trial. Such a determination may of course take into account the factors that courts have traditionally relied on in gauging potential security problems and the risk of escape at trial.
Deck v. Missouri,
Nothing in the Supreme Court’s pronouncements, or in the reasoning supporting those decisions, suggests in the slightest way that this judicial responsibility to reconcile the competing interests of the individual and the state is confined within the courtroom walls. 1 The Court’s focus in these cases was not on the venue in which the measures at issue were taken; it was aimed at protecting the fairness of the criminal proceeding — on what the jury saw and how what it saw might affect the jury’s impression of the defendant’s guilt or innocence. 2 Accordingly, faithfulness to the rationale of the Supreme Court’s decisions requires that a criminal defendant’s right to be free from unreasonable prejudice during his trial must apply to all trial proceedings, including those, such as the jury view in this case, that take place outside of the courtroom. 3 In essence, the Court of Appeals of Wisconsin allowed the Sheriffs Department to judge its own case. The constitutional infirmity of such a methodology is, to put it mildly, firmly *493 established. 4
C.
Although the Court of Appeals of Wisconsin applied the wrong methodology in deciding the fedеral due process issue before it, it is not the court’s methodology but its result that we review to determine whether its judgment was so infirm as to require the issuance of a federal writ of habeas corpus.
See, e.g., Malinowski v. Smith,
The Court of Appeals of Wisconsin held that the security procedures employed did not offend due process because they “were not unreasonable given the security risks associated with this case.”
Lopez,
Upon review of the record, and mindful of AEDPA’s deferential standard of review, we cannot conclude that the Court of Appeals of Wisconsin acted contrary to clearly established law when it concluded that the security measures taken at the jury view were reasonable. Several considerations lead us to this conclusion. At the outset, it is important that we keep in mind that the analysis set forth by the Supreme Court’s cases requires a balancing of the need for security and order during a trial against any prejudice that the defendant might suffer in the eyes of the jury. This sort of inquiry is necessarily a fact-specific one, and, therefore, the Supreme Court understandably has not set forth, with any specificity, the factors that a, trial court ought to consider, or the weight that ought to be given to any of those factors. Consequently, there are few “clearly established” guidelines for federal courts to employ in reviewing state courts’ decisions about the propriety of security measures at trial. 5
Restrictions imposed on us by the federal habeas statute aside, the district court correctly noted that a trial court must have wide discretion in determining what security measures are necessary to prevent disruption of the courtroom, harm to those attending the trial, escape of the defendant and the commission of other crimes.
See Allen,
The chief feature that distinguishes the use of identifiable security officers from courtroom practices we might find inherently prejudicial is the wider range of inferences that a juror might reasonably draw from the officers’ presence. While shackling and prison clothes are unmistakable indications of the need to separate a defendant from the community at large, the presence of guards at a defendant’s trial need not be interpreted as a sign that he is particularly dangerous or culpable. ' Jurors may just as easily believe that the officers are there to guard against disruptions emanating from outside the courtroom or to ensure that tense courtroom exchanges do not erupt into violence. Indeed, it is entirely possible that jurors will not infer anything at all from the presence of the guards.
Holbrook,
Trial courts should have, in any event, significantly more latitude in gauging the appropriate security measures for a jury view outside the courtroom. Although there is a significant amount of case law and professional material on the proper maintenance of security in the courtroоm environment, 7 jury views outside the courtroom necessarily require a significant recalibration of the security/prejudice balance. The trial judge is faced with an unfamiliar locale and with a multifaceted security problem that bears little resemblance to the more contained situation presented by the conventional courtroom. Jurors generally will understand and appreciate this distinction, and, therefore, will be less likely to draw conclusions about the defendant’s guilt upon seeing heightened security measures in effect. Thus, the decision to impose this kind of extra security might well be constitutionally reasonable for a proceeding outside the courtroom, еven though the principles enunciated in Allen and Williams rarely would permit such restraints in the courtroom.
In light of these considerations, we cannot conclude that the Court of Appeals of Wisconsin acted contrary to, or applied unreasonably, clearly established federal law when it determined that the security measures taken here did not violate Mr. Lopez’s federal constitutional right to due process of law. Even aside from the general consideration that additional security measures often will be appropriate when trial proceedings take place outside of the courtroom, the record makes clear that this case presented unusually serious security risks. Mr. Lopez stood accused of committing a brutal, cold-blooded murder. He also had been charged in a second “execution-style” murder; in that second case, participants allegedly had discussed
*495
“taking action against witnesses.”
Lopez,
The Court of Appeals of Wisconsin did not act unreasonably in holding that the security measures in place at the jury view were appropriate. Given the serious charges that Mr. Lopez faced in both state and federal court, the violent nature of the charged crimes, and his alleged membership in a violent, well-armed drug organization, there was ample reason to prepare for any number of violent eventualities. Mr. Lopez might have tried to escape, perhaps with the assistance of his drug associates. Mr. Lopez or a confederate might have attempted to harm the judge or the jurors. Or some interested party might have attempted to hаrm Mr. Lopez himself — a member of the victim’s family, perhaps, or an alleged co-conspirator seeking to silence him. At least one of the jury view locations was outdoors and, therefore, particularly difficult to secure. In light of all this, it was reasonable to expect that violence at the jury view was a real possibility. Accordingly, it was reasonable to take precautions to protect against such risks. The precautions taken here were undoubtedly extreme, but so were the circumstances justifying them.
Not only was the danger posed to the court, the jurors and the general public significant, but the risk of prejudice to Mr. Lopez was not the same as it would have been in a courtroom setting. The purpose behind the presence of the SWAT officers at a jury view outside the courtroom was somewhat ambiguous. The officers’ presence could have been for any of the purposes that we have enumerated or for all of them. Jurors well could appreciate this distinction and, consequently, be less likely to draw conclusions about the defendant’s guilt upon seeing heightened security measures in effect at a venue outside the courtroom. Armed guards surrounding a defendant in a courtroom might well send the message to the jurors that the defendant is “dangerous or untrustworthy.”
Holbrook,
We also note that the trial court took steps to minimize any prejudicial effect on Mr. Lopez by twice instructing the jury not to make any inferences from the security measures that were in effect during the jury view. The court specifically told the jurors that the precautions they saw were routine for jury views, and that they should not infer anything about Mr. Lоpez’s guilt or innocence from the degree of security. 8
*496 In sum, we conclude that the circumstances that were present at the time of the jury view, combined with the curative jury instructions, are sufficient to support the Court of Appeals of Wisconsin’s holding that the security measures during the jury view were reasonable.
D.
Finally, even if the trial court erred by permitting the security measures at issue here, any error was harmless. The Court of Appeals of Wisconsin did not consider the issue of harmless error, because it concluded that there was no error on the part of the trial court. Thus, there is no state-court ruling on this issue to which we owe deference, and we are free to “dispоse of the matter as law and justice require.”
Carlson v. Jess,
The record in this case does not support the conclusion that the security precautions taken during the jury view, even if they crossed the line into unreasonableness, had a substantial and injurious effect or influence on the jury’s verdict. As we already have discussed, the unusual circumstances in this case justified a very high degree of security in order to secure Mr. Lopez and to protect the trial’s participants during the jury view. Thus, even if the measures taken were excessive, they could hаve overshot the mark only by a small margin. Furthermore, the jury view took up only a small portion of the trial— just a few hours in a trial that lasted for several days. The rest of the trial took place in the courtroom, under standard security measures to which Mr. Lopez does not object. The court also instructed the jury that the measures in place during the jury view were routine and that they should draw no negative inference from them. As a general rule, “we assume that the jury obeys the judge’s instructions.”
Pomer v. Schoolman,
Finally, a review of the evidence satisfies us that the jury returned a guilty verdict because the State proved its case, not because the jury view prejudiced the jurors against Mr. Lopez. The State prоduced a witness, Clinton Lampshire, who testified from personal knowledge that Mr. Lopez committed the murder. Two other witnesses' — one of whom was Mr. Lopez’s nephew — testified that Mr. Lopez told them that he had shot the victim. The State also introduced into evidence the murder weapon, which it was able to tie to Mr. Lopez through witness testimony.
Thus, we conclude that any error the trial court might have committed ultimately was harmless.
Conclusion
For the reasons set forth in this opinion, we affirm the judgment of the district court.
Affirmed
Notes
. The State suggests in its brief that a court’s responsibility to ensure that security measures are reasonable during trial does not extend to proceedings that take place outside the сourtroom. To support this proposition, the State relies on several cases from other circuits.
See
Appellee’s Br. 21 (citing
Allen v. Montgomery,
None of those cases, however, holds that the court may delegate decisions about security during trial proceedings that take place outside of the courtroom. Those cases simply hold that law enforcement officials have a role in determining the security provisions that are appropriate when the defendant must be transported — before and after trial proceedings — between the courtroom and the jail where he is being detained.
See Allen,
. We have noted before, in interpreting
Williams
and its progeny, that although a trial court’s decisions about the required level of security during a trial are entitled to deference, those decisions must be made by the court itself; the trial judge “may not delegate his discretion to another party.”
United States v. Brooks,
. The State relies on the Supreme Court’s decision in
Carey v. Musladin,
. Of course, there is no constitutional prohibition on the trial court’s giving significant weight to the view of law enforcement authorities as to the necessity of certain security measures. Indeed, such respect for the advice of those charged with protecting public safety is prudent. However, the actual due process determination must be made by the judicial officer. Law enforcement officials hardly can be said to be neutral in balancing the rights of the defendant against their own view of necessary security measures.
. We also note that the Supreme Court has cautioned the courts of appeals against trying to anticipate how it will rule.
See Wright v. Van Patten, 552
U.S. 120,
. Despite the trial court’s mishandling of the issue before the jury view, we do have in the record its post-facto estimation, albeit laconically stated, that the security measures were reasonable. We therefore hаve some minimal determination by the judicial officer on the scene that the rights of the defendant were protected adequately.
.
See, e.g., Deck v. Missouri,
. Mr. Lopez submits that these instructions were irrelevant because "[t]he security restraints used doing the jury view ... were so inherently prejudicial that the jury could not possibly ignore what they implied.” Appellant’s Br. 28. Although the Supreme Court
*496
has acknowledged that some security practices undertaken inside the courtroom might be so pervasively prejudicial that no jury instruction could cure them,
see Holbrook,
