As far as I am aware, ordinary (nonrelativistic) quantum mechanics can be put on a completely rigorous mathematical foundation (unlike, say, QFT).
With that said, having learned some functional analysis, I remember spectral theorems existing for
Compact, self-adjoint operators on Hilbert spaces, which is very similar to the finite-dimensional case;
Bounded, self-adjoint operators on Hilbert-spaces, where the spectral theorem involves a projection valued measure and is essentially given by $$ A=\int_{\sigma(A)}\lambda dE_\lambda. $$
The problem is that when we represent the Hilbert-space of physical states as $L^2(\mu)$, then all relevant operators are differential operators, multiplication operators or some kind of combinations of the two. To the best of my knowledge, neither of these operators are bounded, and definitely not compact.
Moreover, as I recall from functional analysis, eigenvalues/eigenvectors can only be assigned to point spectra and only compact operators are guaranteed to have point spectrum.
Question: How to reconcile these claims with quantum mechanics? Is it possible to turn the position and momentum operators into bounded operators somehow? If so, is a satisfactory formulation of QM possible where projection operators of the form $\left|n\right\rangle\left\langle n\right|$ (essentially tensor product operators) are replaced with the projection valued measure?
Or how does one do this rigorously?