On the canvas, I have it set to "Screen Space - Camera" in pixel perfect mode with the Render Camera set to my main camera (the one rendering to texture).
On the canvas scaler settings, "UI Scale Mode" is set to "Constant Pixel Size".
This should cause your UI to not only stop scaling with the screen size, but also to render to the camera itself, therefore rendering to the target texture.