diff --git a/src/html5-qrcode-scanner.ts b/src/html5-qrcode-scanner.ts
index 5a16710..8fedfda 100644
--- a/src/html5-qrcode-scanner.ts
+++ b/src/html5-qrcode-scanner.ts
@@ -704,7 +704,7 @@ export class Html5QrcodeScanner {
"select", this.getCameraSelectionId());
if (numCameras === 1) {
// If only one camera is found, don't show camera selection.
- cameraSelectionSelect.style.display = "none";
+ cameraSelectionContainer.style.display = "none";
} else {
// Otherwise, show the number of cameras found as well.
const selectCameraString = Html5QrcodeScannerStrings.selectCamera();