You can use javascript functions :
1.The innerWidth property sets or returns the inner width of a window's content area.
window.innnerHeight
2.The innerHeight property sets or returns the inner height of a window's content area.
window.innerWidth