Scalar fields transform under a diffeomorphism $x\to\tilde x$ under the rule $\phi(x)\to\tilde \phi (\tilde x) = \phi (x)$. They are often said to be invariant, though only kinda of. For example, if $\phi(t)=\mu t$ and $\tilde t = t^2/\Lambda$, then $\tilde \phi (\tilde t) = \mu \sqrt{\Lambda \tilde t}$ if we want to maintain $\tilde \phi (t^2/\Lambda) = \phi(t)$. So clearly $\phi \ne \tilde \phi$ in the sense of functions; the scalar field, or at least the abstract mapping used to represent it, does transform.
Anyway, I want to ask about arbitrary functions with explicit coordinate-dependence. For example, perhaps you have a time-dependent mass in your Lagrangian:
$$ \mathcal L = \frac{1}{2}\partial_\mu \phi \partial_\nu \phi g^{\mu\nu} - \frac{1}{2}m^2(t)\phi^2. $$
How does the mass transform under a time diffeomorphism? Naively I would say $m(t)\to\tilde m(\tilde t) = m(t)$ since a mass, at least a constant one, is a scalar, but that can't be right. If the mass transforms just like the field, then the full Lagrangian also transforms properly under diffeomorphisms, which I know it doesn't because the explicit time dependence breaks the time diff (energy isn't conserved, etc).
It seems the only sensible transformation law for the mass should be $m(t)\to m(\tilde t)$ meaning it genuinely doesn't transform; I'm simply replacing the time coordinates. Except this seems arbitrary and handwavy. Is there an intuitive reason for me to convince myself that whether a quantity is dynamical (i.e., has an eom like $\phi$ but not $m$) should impact what kind of transformation rule it has?
EDIT to expand on the conserved current issue.
Diff invariance leads to conservation of the gravitational stress-energy tensor. (see page 139 here).
Translational invariance leads to conservation of the canonical stress-energy tensor (Noether's theorem).
For scalars, one stress-energy tensor is conserved if, and only if, the other is as well. (this is claimed in the appendix of this paper but I don't have a proof.)
If $m$ transforms as $\phi$, then $\mathcal L$ is a scalar and $S$ is diff invariant. Thus the gravitational stress-energy tensor is conserved. But the presence of the non-dynamical $m(t)$ in $\mathcal L$ means the canonical stress-energy tensor is not conserved because the Lagrangian has explicit time dependence. This is a contradiction.
So I cannot accept any answer that claims $m$ transforms as $\phi$ unless it resolves this conflict.