Vid is bad quality but you can notice when I move the mouse the screen shakes I want the camera to rotate with the mouse. Vid: - YouTube
code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class turn : MonoBehaviour
{
// Start is called before the first frame update
public float sens = 1.0f;
void Update()
{
float mouseX = Input.GetAxis("Mouse X") * sens;
float mouseY = Input.GetAxis("Mouse Y") * sens;
transform.rotation = Quaternion.Euler(mouseX, mouseY, 0);
mouseX *= Time.deltaTime;
mouseY *= Time.deltaTime;
}}
Take a look at the FreeLookCamera from Unity’s standard assets package.
You need to have a pivot point for your camera to rotate around. For example you can target the player and rotate in reference to the players transform. If you are still having troubles. Message me and I can help further 
@codester95 how could I target a player?
As it currently is, your code sets the camera’s rotation to be the value of the input axes themselves, so the camera’s rotation will always be only minscule rotations in any direction. In order to get the camera to pan with the mouse, you have to make the rotation additive, for example with transform.eulerAngles += new Vector3(-mouseY, mouseX, 0);
(The rearranged mouse values make the camera rotate correctly, as well).