Working away from home write off

Hello. I would appreciate it if anyone could help me with my situation. I am trying to get information about work related expenses deductions possibility.

I got a new job that required me to work in another state. I moved there end of November 2018 and then moved back home a year later at the end of November 2019. I lived there in a temporary rented apartment for which I paid out of my own pocket, this plus utilities. Also I was traveling every two weeks to see my wife back home. In other words, I got a job and moved away, then I applied for change of my physical office location that was granted and a year later I moved to my new location (which in reality is my normal home where my wife and I now live). So, is there a way to write all that off for my 2019 taxes as a job related or other expenses? It is a big chunk of money I paid, so would love to get some of it back. I did not get any per-diem on it.

Any help will be greatly appreciated.

Thanks!