Abstract Quantum nonlocality represents correlations between subsystems of a composite quantum system, usually including Bell nonlocality, steerability, and entanglement. According to the hypothesis of quantum mechanics, states of a quantum system $Q$ described by a $d$-dimensional Hilbert space $\H_Q$ are denoted by density operators acting on $\H_Q$. Under a basis $e$ for the Hilbert space $\H_A\otimes \H_B$, every abstract density operator $\rho$ of the system $AB$ corresponds to a density matrix ${\rho}_{e}$, which is a state of the {$d_Ad_B$-dimensional complex Hilbert space } $\C^{d_A}\otimes\C^{d_B}$. In this work, we discuss the consistency of
 quantum nonlocality of density operators $\rho$ and their corresponding density matrices ${\rho}_e$ under the chosen basis $e$. It is proved that only when a basis $e$ is a product one, a density operator $\rho$ is entangled (resp., Bell nonlocal, steerable) if and only if its density matrix ${\rho}_e$ is entangled (resp., Bell nonlocal, steerable).